File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 25
25
#include "llvm-libc-macros/generic-error-number-macros.h"
26
26
#endif
27
27
28
- #if defined(__AMDGPU__) || defined(__NVPTX__)
28
+ #if defined(__AMDGPU__) || defined(__NVPTX__) || \
29
+ (defined(__ELF__) && !defined(__linux__) && defined(__Fuchsia__))
29
30
extern int __llvmlibc_errno; // Not thread_local!
30
31
#else
31
32
#ifdef __cplusplus
Original file line number Diff line number Diff line change 9
9
#include " libc_errno.h"
10
10
#include " src/__support/CPP/atomic.h"
11
11
12
- #ifdef LIBC_TARGET_ARCH_IS_GPU
12
+ #if defined(LIBC_TARGET_ARCH_IS_GPU) || \
13
+ (defined(__ELF__) && !defined(__linux__) && defined(__Fuchsia__))
13
14
// LIBC_THREAD_LOCAL on GPU currently does nothing. So essentially this is just
14
15
// a global errno for gpu to use for now.
15
16
extern " C" {
You can’t perform that action at this time.
0 commit comments