diff options
author | Joseph Huber <jhuber6@vols.utk.edu> | 2023-04-26 17:07:47 -0500 |
---|---|---|
committer | Joseph Huber <jhuber6@vols.utk.edu> | 2023-04-26 17:08:18 -0500 |
commit | 5c9629a714203276c9662313b5b86c0330a6a1b4 (patch) | |
tree | 249e3dcb619af96ee6f4d095bc58ac54cf705077 /libc/test | |
parent | 984dd163a7a03c517e419475899b80dda841e752 (diff) | |
download | llvm-5c9629a714203276c9662313b5b86c0330a6a1b4.tar.gz |
[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.
Diffstat (limited to 'libc/test')
-rw-r--r-- | libc/test/UnitTest/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/test/UnitTest/CMakeLists.txt b/libc/test/UnitTest/CMakeLists.txt index 1404f0dbb130..2f38c61594e9 100644 --- a/libc/test/UnitTest/CMakeLists.txt +++ b/libc/test/UnitTest/CMakeLists.txt @@ -27,7 +27,7 @@ add_library( foreach(lib LibcUnitTest LibcHermeticTest) target_include_directories(${lib} PUBLIC ${LIBC_SOURCE_DIR}) - if(LLVM_LIBC_FULL_BUILD) + if(LIBC_GPU_BUILD OR LIBC_GPU_ARCHITECTURES) # If we are in full build mode, then we should use our own public headers. target_include_directories(${lib} PRIVATE ${LIBC_BUILD_DIR}/include) endif() @@ -52,7 +52,7 @@ add_library( target_include_directories(LibcTestMain PUBLIC ${LIBC_SOURCE_DIR}) target_compile_options(LibcTestMain PRIVATE -fno-exceptions -fno-rtti) -if(LIBC_GPU_BUILD) +if(LIBC_GPU_BUILD OR LIBC_GPU_ARCHITECTURES) target_include_directories(LibcTestMain PRIVATE ${LIBC_BUILD_DIR}/include) target_compile_options(LibcTestMain PRIVATE ${LIBC_HERMETIC_TEST_COMPILE_OPTIONS}) endif() |