[libc-commits] [PATCH] D149216: [libc] Add path to include generated headers for hermetic tests
Joseph Huber via Phabricator via libc-commits
libc-commits at lists.llvm.org
Tue Apr 25 16:58:30 PDT 2023
jhuber6 updated this revision to Diff 516987.
jhuber6 added a comment.
You need this include for all of them if we're building full standalone on the GPU. I'm not sure what a good way to express this is.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149216/new/
https://reviews.llvm.org/D149216
Files:
libc/test/UnitTest/CMakeLists.txt
Index: libc/test/UnitTest/CMakeLists.txt
===================================================================
--- libc/test/UnitTest/CMakeLists.txt
+++ libc/test/UnitTest/CMakeLists.txt
@@ -26,6 +26,9 @@
foreach(lib LibcUnitTest LibcHermeticTest)
target_include_directories(${lib} PUBLIC ${LIBC_SOURCE_DIR})
+ if(LIBC_ENABLE_HERMETIC_TESTS AND NOT LIBC_ENABLE_UNITTESTS)
+ target_include_directories(${lib} PRIVATE ${LIBC_BUILD_DIR}/include)
+ endif()
target_compile_options(${lib} PRIVATE ${LIBC_HERMETIC_TEST_COMPILE_OPTIONS}
-fno-exceptions -fno-rtti)
add_dependencies(${lib}
@@ -37,6 +40,7 @@
)
endforeach()
+target_include_directories(LibcHermeticTest PRIVATE ${LIBC_BUILD_DIR}/include)
target_compile_options(LibcHermeticTest PRIVATE -ffreestanding -nostdlib -nostdlib++)
add_library(
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149216.516987.patch
Type: text/x-patch
Size: 843 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230425/08d5cc60/attachment-0001.bin>
More information about the libc-commits
mailing list