This function is used to add unit test and hermetic test framework libraries.
It avoids the duplicated code to add compile options to each every test
framework libraries.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I got the following error when trying to build locally
CMake Error at /home/jhuber/Documents/llvm/llvm-project/libc/test/UnitTest/CMakeLists.txt:10 (message): 'add_unittest_framework_library' requires SRCS; for header only libraries, use 'add_header_library' Call Stack (most recent call first): /home/jhuber/Documents/llvm/llvm-project/libc/test/UnitTest/CMakeLists.txt:78 (add_unittest_framework_library)
Comment Actions
Thanks for trying. I messed up the sources of the`LibcDeathTestExecutors` library. It should be fixed now.
Comment Actions
ld.lld: error: libc/test/UnitTest/libLibcHermeticTestSupport.hermetic.a(HermeticTestUtils.cpp.o) is incompatible with libc/startup/gpu/amdgpu/CMakeFiles/libc.startup.gpu.amdgpu.crt1.dir/start.cpp.o clang++: error: ld.lld command failed with exit code 1 (use -v to see invocation)
I get this error now, it happens when the architectures don't line up. So that means HermeticTestUtils.cpp.o is no longer being compiled for the GPU via --target=
Comment Actions
Indeed! I the hermetic test compile options were only being added to the main test framework library and not to the other test framework libraries. Hopefully its fixed now.