llvm-project/libcxx
Markus Böck 6359049c35 [CMake][runtimes] Add file level dependency to merge_archives commands
Both libc++ and libc++abi have options of merging with another archive. In the case of libc++abi, libunwind can be merged into it and in the case of libc++, libc++abi can be merged into it.

This is realized using add_custom_command with POST_BUILD and the usage of the CMake generator expression TARGET_LINKER_FILE in the arguments. For such generator expressions CMake doc states: "This target-level dependency does NOT add a file-level dependency that would cause the custom command to re-run whenever the executable is recompiled" [1]

This patch adds a DEPENDS argument to both add_custom_command invocations so that the archives also have a file-level dependency on the target they are merging with. That way, changes in say, libunwind source code, will be updated in the libc++abi and/or libc++ static libraries as well.

[1] https://cmake.org/cmake/help/v3.20/command/add_custom_command.html

Differential Revision: https://reviews.llvm.org/D98129
2021-03-18 18:51:10 +01:00
..
benchmarks Revert "[libc++] Require C++20 to build the benchmarks." 2021-02-09 19:59:34 +01:00
cmake [libcxx] Move Linaro 32 bit armv bots to buildkite 2021-03-12 09:47:07 +00:00
docs [libcxx] [docs] Fix formatting of inline verbatim snippets in the Windows section 2021-03-17 11:41:45 +02:00
include [libcxx] updates the feature-test macro generator 2021-03-18 17:08:10 +00:00
lib [libc++] Implement format_error. 2021-01-28 18:02:53 +01:00
src [CMake][runtimes] Add file level dependency to merge_archives commands 2021-03-18 18:51:10 +01:00
test [libcxx] updates the feature-test macro generator 2021-03-18 17:08:10 +00:00
utils [libc++] Future-proof generate_feature_test_macro_components.py against long names. 2021-03-18 13:35:28 -04:00
www [libcxx] [docs] Update docs about how to build for Windows 2021-03-15 17:30:26 +02:00
.clang-format
.gitignore [libcxx] Fix .gitignore to not exclude test directories 2020-03-25 17:52:23 -07:00
CMakeLists.txt [libcxx] Don't add -Wall when building in MSVC mode 2021-03-05 23:48:02 +02:00
CREDITS.TXT [libcxx] Adds [concept.same] 2020-04-08 18:00:13 -04:00
LICENSE.TXT Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00
TODO.TXT [libc++][NFC] Remove outdated TODO item 2020-07-08 13:04:33 -04:00
appveyor-reqs-install.cmd Attempt to upgrade compiler used by appveyor builds 2019-04-03 20:40:01 +00:00
appveyor.yml disable appveyor config for MSVC 2015 2019-04-03 20:36:51 +00:00