[all-commits] [llvm/llvm-project] 79ee03: [runtimes] Always define cxx_shared, cxx_static & ...
Louis Dionne via All-commits
all-commits at lists.llvm.org
Wed Oct 12 06:36:48 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 79ee0342dbf025bc70f237bdfe9ccb4e10a592ce
https://github.com/llvm/llvm-project/commit/79ee0342dbf025bc70f237bdfe9ccb4e10a592ce
Author: Louis Dionne <ldionne.2 at gmail.com>
Date: 2022-10-12 (Wed, 12 Oct 2022)
Changed paths:
M libcxx/cmake/caches/AIX.cmake
M libcxx/src/CMakeLists.txt
M libcxxabi/src/CMakeLists.txt
M libunwind/src/CMakeLists.txt
Log Message:
-----------
[runtimes] Always define cxx_shared, cxx_static & other targets
However, mark them as EXCLUDE_FROM_ALL when we don't want to build them.
Simply declaring the targets should be of no harm, and it allows other
projects to mention these targets regardless of whether they end up
being built or not.
While the diff may not make that obvious, this patch basically
moves the definition of e.g. `cxx_shared` out of the `if (LIBCXX_ENABLE_SHARED)`
and instead marks it as `EXCLUDE_FROM_ALL` conditionally on whether
LIBCXX_ENABLE_SHARED is passed. It then does the same for libunwind
and libc++abi targets.
Differential Revision: https://reviews.llvm.org/D134221
More information about the All-commits
mailing list