This is essentially D71894, but for libc++.
This is needed for running libc++ tests over SSH.
Paths
| Differential D72687
[libcxx] Allow tests to link with static libc++abi/libc++ even if the shared version is present ClosedPublic Authored by broadwaylamb on Jan 14 2020, 2:10 AM.
Details
Summary This is essentially D71894, but for libc++. This is needed for running libc++ tests over SSH.
Diff Detail
Event TimelineHerald added subscribers: libcxx-commits, dexonsmith, christof, mgorny. · View Herald TranscriptJan 14 2020, 2:10 AM
Comment Actions Update to match D71894. Tested with:
Comment Actions FWIW, I'm working on a refactoring of the way we configure lit that should get rid of pretty much all testing logic inside libc++ and libc++abi's CMake files. So I'm OK with this change if it helps you right now, however if what I'm working on works well, we'll get rid of it. This revision is now accepted and ready to land.Mar 23 2020, 2:13 PM Closed by commit rGeed57dd59150: [libcxx] Allow tests to link with static libc++abi/libc++ even if the shared… (authored by broadwaylamb). · Explain WhyMar 25 2020, 5:54 AM This revision was automatically updated to reflect the committed changes. Comment Actions This broke CMake configuration with the following set of arguments: -DLLVM_ENABLE_PROJECTS=libcxx -DLIBCXX_ENABLE_SHARED=OFF -DLIBCXX_ENABLE_STATIC=OFF -DLIBCXX_INCLUDE_TESTS=OFF. Fixed in: commit b58902bc72c2b479b5ed27ec0d3422ba9782edbb Author: Louis Dionne <ldionne@apple.com> Date: Wed Mar 25 16:50:19 2020 -0400 [libc++] Fix CMake configuration breakage when libc++ is built neither static nor dynamic Introduced by https://reviews.llvm.org/D72687. This condition can happen when the tests are not being run at all, and we're only trying to generate the libc++ headers.
Revision Contents
Diff 237889 libcxx/CMakeLists.txt
libcxx/test/CMakeLists.txt
libcxx/test/lit.site.cfg.in
|
Have you considered using cmake_dependent_option? That way you don't need to do the validation below yourself.