File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ function(_get_common_compile_options output_var flags)
43
43
list (APPEND compile_options "-fpie" )
44
44
45
45
if (LLVM_LIBC_FULL_BUILD)
46
+ list (APPEND compile_options "-DLIBC_FULL_BUILD" )
46
47
# Only add -ffreestanding flag in full build mode.
47
48
list (APPEND compile_options "-ffreestanding" )
48
49
endif ()
@@ -126,6 +127,7 @@ function(_get_common_test_compile_options output_var c_test flags)
126
127
list (APPEND compile_options "-fpie" )
127
128
128
129
if (LLVM_LIBC_FULL_BUILD)
130
+ list (APPEND compile_options "-DLIBC_FULL_BUILD" )
129
131
# Only add -ffreestanding flag in full build mode.
130
132
list (APPEND compile_options "-ffreestanding" )
131
133
list (APPEND compile_options "-fno-exceptions" )
Original file line number Diff line number Diff line change 9
9
#ifndef LLVM_LIBC_HDR_MATH_MACROS_H
10
10
#define LLVM_LIBC_HDR_MATH_MACROS_H
11
11
12
- #ifdef LLVM_LIBC_FULL_BUILD
12
+ #ifdef LIBC_FULL_BUILD
13
13
14
14
#include "include/llvm-libc-macros/math-macros.h"
15
15
You can’t perform that action at this time.
0 commit comments