File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
libc/include/llvm-libc-macros
utils/bazel/llvm-project-overlay/libc Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 9
9
#ifndef LLVM_LIBC_MACROS_MATH_MACROS_H
10
10
#define LLVM_LIBC_MACROS_MATH_MACROS_H
11
11
12
+ // TODO: Remove this. This is a temporary fix for a downstream problem.
13
+ #ifdef LLVM_LIBC_FULLBUILD
14
+
12
15
#include " limits-macros.h"
13
16
14
17
#define FP_NAN 0
@@ -79,4 +82,10 @@ template <typename T> inline constexpr bool isnan(T x) {
79
82
80
83
#endif
81
84
85
+ #else
86
+
87
+ #include < math.h>
88
+
89
+ #endif // LLVM_LIBC_FULLBUILD
90
+
82
91
#endif // LLVM_LIBC_MACROS_MATH_MACROS_H
Original file line number Diff line number Diff line change @@ -68,7 +68,6 @@ libc_support_library(
68
68
name = "llvm_libc_macros_math_macros" ,
69
69
hdrs = ["include/llvm-libc-macros/math-macros.h" ],
70
70
deps = [":llvm_libc_macros_limits_macros" ],
71
- defines = ["__FP_LOGBNAN_MIN" ],
72
71
)
73
72
74
73
libc_support_library (
@@ -1000,8 +999,8 @@ libc_support_library(
1000
999
1001
1000
libc_support_library (
1002
1001
name = "__support_osutil_quick_exit" ,
1003
- hdrs = ["src/__support/OSUtil/quick_exit.h" ],
1004
1002
srcs = ["src/__support/OSUtil/linux/quick_exit.cpp" ],
1003
+ hdrs = ["src/__support/OSUtil/quick_exit.h" ],
1005
1004
deps = [
1006
1005
":__support_osutil_syscall" ,
1007
1006
],
You can’t perform that action at this time.
0 commit comments