Skip to content

Commit 5c9629a

Browse files
committed
[libc][fix] Also remove the headers for the other flags
Summary: This patch makes this only apply to the GPU build. This should be handled more intelligently in the future so it's common between all of t hem.
1 parent 984dd16 commit 5c9629a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libc/test/UnitTest/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ add_library(
2727

2828
foreach(lib LibcUnitTest LibcHermeticTest)
2929
target_include_directories(${lib} PUBLIC ${LIBC_SOURCE_DIR})
30-
if(LLVM_LIBC_FULL_BUILD)
30+
if(LIBC_GPU_BUILD OR LIBC_GPU_ARCHITECTURES)
3131
# If we are in full build mode, then we should use our own public headers.
3232
target_include_directories(${lib} PRIVATE ${LIBC_BUILD_DIR}/include)
3333
endif()
@@ -52,7 +52,7 @@ add_library(
5252

5353
target_include_directories(LibcTestMain PUBLIC ${LIBC_SOURCE_DIR})
5454
target_compile_options(LibcTestMain PRIVATE -fno-exceptions -fno-rtti)
55-
if(LIBC_GPU_BUILD)
55+
if(LIBC_GPU_BUILD OR LIBC_GPU_ARCHITECTURES)
5656
target_include_directories(LibcTestMain PRIVATE ${LIBC_BUILD_DIR}/include)
5757
target_compile_options(LibcTestMain PRIVATE ${LIBC_HERMETIC_TEST_COMPILE_OPTIONS})
5858
endif()

0 commit comments

Comments
 (0)