[libc-commits] [libc] cb1facf - [libc][fix] Only add the hermetic test flags in GPU mode
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Wed Apr 26 14:58:53 PDT 2023
Author: Joseph Huber
Date: 2023-04-26T16:58:43-05:00
New Revision: cb1facf48cbc5c500b7eaf9bc379913252cd36a2
URL: https://github.com/llvm/llvm-project/commit/cb1facf48cbc5c500b7eaf9bc379913252cd36a2
DIFF: https://github.com/llvm/llvm-project/commit/cb1facf48cbc5c500b7eaf9bc379913252cd36a2.diff
LOG: [libc][fix] Only add the hermetic test flags in GPU mode
Summary:
This is a little broken, what we really need is a separate target to use
with the hermetic tests, but this is a stop-gap to get the bots green
again.
Added:
Modified:
libc/test/UnitTest/CMakeLists.txt
Removed:
################################################################################
diff --git a/libc/test/UnitTest/CMakeLists.txt b/libc/test/UnitTest/CMakeLists.txt
index c5d403a0c0f9..1404f0dbb130 100644
--- a/libc/test/UnitTest/CMakeLists.txt
+++ b/libc/test/UnitTest/CMakeLists.txt
@@ -52,7 +52,7 @@ add_library(
target_include_directories(LibcTestMain PUBLIC ${LIBC_SOURCE_DIR})
target_compile_options(LibcTestMain PRIVATE -fno-exceptions -fno-rtti)
-if(LLVM_LIBC_FULL_BUILD)
+if(LIBC_GPU_BUILD)
target_include_directories(LibcTestMain PRIVATE ${LIBC_BUILD_DIR}/include)
target_compile_options(LibcTestMain PRIVATE ${LIBC_HERMETIC_TEST_COMPILE_OPTIONS})
endif()
More information about the libc-commits
mailing list