File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 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)
4343 list (APPEND compile_options "-fpie" )
4444
4545 if (LLVM_LIBC_FULL_BUILD)
46+ list (APPEND compile_options "-DLIBC_FULL_BUILD" )
4647 # Only add -ffreestanding flag in full build mode.
4748 list (APPEND compile_options "-ffreestanding" )
4849 endif ()
@@ -126,6 +127,7 @@ function(_get_common_test_compile_options output_var c_test flags)
126127 list (APPEND compile_options "-fpie" )
127128
128129 if (LLVM_LIBC_FULL_BUILD)
130+ list (APPEND compile_options "-DLIBC_FULL_BUILD" )
129131 # Only add -ffreestanding flag in full build mode.
130132 list (APPEND compile_options "-ffreestanding" )
131133 list (APPEND compile_options "-fno-exceptions" )
Original file line number Diff line number Diff line change 99#ifndef LLVM_LIBC_HDR_MATH_MACROS_H
1010#define LLVM_LIBC_HDR_MATH_MACROS_H
1111
12- #ifdef LLVM_LIBC_FULL_BUILD
12+ #ifdef LIBC_FULL_BUILD
1313
1414#include "include/llvm-libc-macros/math-macros.h"
1515
You can’t perform that action at this time.
0 commit comments