Skip to content

Commit 3693f44

Browse files
authored
[libc] Exclude Fuchsia from float128 detection (#73985)
Following from #73372: Fuchsia targets currently don't support `float128`. Add detection for `LIBC_TARGET_OS_IS_FUCHSIA`, and exclude this OS from setting `LIBC_COMPILER_HAS_FLOAT128_EXTENSION`.
1 parent f866fde commit 3693f44

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

libc/src/__support/macros/properties/float.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ using float16 = _Float16;
6060
#define LIBC_COMPILER_HAS_C23_FLOAT128
6161
#endif
6262
#if (defined(LIBC_COMPILER_CLANG_VER) && (LIBC_COMPILER_CLANG_VER >= 500)) && \
63-
(defined(LIBC_TARGET_ARCH_IS_X86_64))
63+
(defined(LIBC_TARGET_ARCH_IS_X86_64) && \
64+
!defined(LIBC_TARGET_OS_IS_FUCHSIA))
6465
#define LIBC_COMPILER_HAS_FLOAT128_EXTENSION
6566
#endif
6667

libc/src/__support/macros/properties/os.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,8 @@
3737
#endif
3838
#endif
3939

40+
#if defined(__Fuchsia__)
41+
#define LIBC_TARGET_OS_IS_FUCHSIA
42+
#endif
43+
4044
#endif // LLVM_LIBC_SRC___SUPPORT_MACROS_PROPERTIES_OS_H

0 commit comments

Comments
 (0)