[libc-commits] [libc] 2176af7 - Fix `__float128` only available on Linux for x86_64 (#75909)

via libc-commits libc-commits at lists.llvm.org
Wed Dec 20 00:36:05 PST 2023


Author: Igor Popov
Date: 2023-12-20T09:36:01+01:00
New Revision: 2176af7a269201064136da00b6428c44efac1bbd

URL: https://github.com/llvm/llvm-project/commit/2176af7a269201064136da00b6428c44efac1bbd
DIFF: https://github.com/llvm/llvm-project/commit/2176af7a269201064136da00b6428c44efac1bbd.diff

LOG: Fix `__float128` only available on Linux for x86_64 (#75909)

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/libc/src/__support/macros/properties/float.h b/libc/src/__support/macros/properties/float.h
index 756579024cad8b..98ca2a5d4bc46f 100644
--- a/libc/src/__support/macros/properties/float.h
+++ b/libc/src/__support/macros/properties/float.h
@@ -59,9 +59,9 @@ using float16 = _Float16;
      defined(LIBC_TARGET_ARCH_IS_X86_64))
 #define LIBC_COMPILER_HAS_C23_FLOAT128
 #endif
-#if (defined(LIBC_COMPILER_CLANG_VER) && (LIBC_COMPILER_CLANG_VER >= 500)) &&  \
+#if (defined(LIBC_COMPILER_CLANG_VER) && (LIBC_COMPILER_CLANG_VER >= 600)) &&  \
     (defined(LIBC_TARGET_ARCH_IS_X86_64) &&                                    \
-     !defined(LIBC_TARGET_OS_IS_FUCHSIA))
+     defined(LIBC_TARGET_OS_IS_LINUX) && !defined(LIBC_TARGET_OS_IS_FUCHSIA))
 #define LIBC_COMPILER_HAS_FLOAT128_EXTENSION
 #endif
 


        


More information about the libc-commits mailing list