We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 694d5f1 commit 4f88c38Copy full SHA for 4f88c38
src/Runtime/OMTensor.inc
@@ -48,9 +48,9 @@
48
#include "src/Support/SmallFPConversion.h"
49
#endif
50
51
-#if defined(__APPLE__)
+#if defined(__APPLE__) || defined(__MVS__)
52
// __errno_location() is called from krnl::emitErrNo() to set errno in
53
-// generated llvm IR, but it somehow doesn't come out of the box on MacOS.
+// generated llvm IR, but it somehow doesn't come out of the box on MacOS or MVS.
54
int *__attribute__((__weak__)) __errno_location(void) { return &errno; }
55
56
0 commit comments