Skip to content

Commit 911308c

Browse files
committed
Use LIBC_FULL_BUILD flag.
1 parent c93f399 commit 911308c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

libc/cmake/modules/LLVMLibCCompileOptionRules.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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")

libc/hdr/math_macros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
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

0 commit comments

Comments
 (0)