diff options
author | Petr Hosek <phosek@chromium.org> | 2019-04-17 21:41:09 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2019-04-17 21:41:09 +0000 |
commit | 1788b89b4feddce4874a92a7008da956d4813825 (patch) | |
tree | dc0692b6b8a7210ecd278790b0ceb72176cfa514 /libcxx/cmake/Modules | |
parent | daf6e66ac5d2f5305f493e90923d11b91a27e7b3 (diff) | |
download | bcm5719-llvm-1788b89b4feddce4874a92a7008da956d4813825.tar.gz bcm5719-llvm-1788b89b4feddce4874a92a7008da956d4813825.zip |
[CMake] Split linked libraries for shared and static libc++
Some linker libraries are only needed for shared libc++, some only
for static libc++, combining these together in LIBCXX_LIBRARIES and
LIBCXX_INTERFACE_LIBRARIES can introduce unnecessary dependencies.
This changes splits those up into LIBCXX_SHARED_LIBRARIES and
LIBCXX_STATIC_LIBRARIES matching what libc++abi already does.
Differential Revision: https://reviews.llvm.org/D57872
llvm-svn: 358614
Diffstat (limited to 'libcxx/cmake/Modules')
-rw-r--r-- | libcxx/cmake/Modules/HandleLibcxxFlags.cmake | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/libcxx/cmake/Modules/HandleLibcxxFlags.cmake b/libcxx/cmake/Modules/HandleLibcxxFlags.cmake index fb60318a330..cde2c297a28 100644 --- a/libcxx/cmake/Modules/HandleLibcxxFlags.cmake +++ b/libcxx/cmake/Modules/HandleLibcxxFlags.cmake @@ -216,14 +216,6 @@ macro(add_library_flags_if condition) endif() endmacro() -# Add a list of libraries or link flags to 'LIBCXX_LIBRARIES'. -macro(add_interface_library) - foreach(lib ${ARGN}) - list(APPEND LIBCXX_LIBRARIES ${lib}) - list(APPEND LIBCXX_INTERFACE_LIBRARIES ${lib}) - endforeach() -endmacro() - # Turn a comma separated CMake list into a space separated string. macro(split_list listname) string(REPLACE ";" " " ${listname} "${${listname}}") |