File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed
libc/src/__support/macros/properties
utils/bazel/llvm-project-overlay/libc Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -31,5 +31,6 @@ add_header_library(
31
31
DEPENDS
32
32
.architectures
33
33
.compiler
34
+ .cpu_features
34
35
.os
35
36
)
Original file line number Diff line number Diff line change 13
13
14
14
#include " src/__support/macros/properties/architectures.h"
15
15
#include " src/__support/macros/properties/compiler.h"
16
+ #include " src/__support/macros/properties/cpu_features.h"
16
17
#include " src/__support/macros/properties/os.h"
17
18
18
19
#include < float.h> // LDBL_MANT_DIG
30
31
#endif
31
32
32
33
// float16 support.
33
- #if defined(LIBC_TARGET_ARCH_IS_X86_64)
34
+ #if defined(LIBC_TARGET_ARCH_IS_X86_64) && defined(LIBC_TARGET_CPU_HAS_SSE2)
34
35
#if (defined(LIBC_COMPILER_CLANG_VER) && (LIBC_COMPILER_CLANG_VER >= 1500)) || \
35
36
(defined(LIBC_COMPILER_GCC_VER) && (LIBC_COMPILER_GCC_VER >= 1201 ))
36
37
#define LIBC_COMPILER_HAS_C23_FLOAT16
Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ libc_support_library(
86
86
deps = [
87
87
":__support_macros_properties_architectures" ,
88
88
":__support_macros_properties_compiler" ,
89
+ ":__support_macros_properties_cpu_features" ,
89
90
":__support_macros_properties_os" ,
90
91
],
91
92
)
You can’t perform that action at this time.
0 commit comments