diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2014-12-29 12:15:47 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2014-12-29 12:15:47 +0000 |
commit | 64be05a87321216adf9cf34ac1dad8670af54870 (patch) | |
tree | 238526232fc186aec540c75ed1eb730bcfbdb4ea /libcxx/lib | |
parent | 24e9773fc5b5955f8b010db357fee096432dc367 (diff) | |
download | bcm5719-llvm-64be05a87321216adf9cf34ac1dad8670af54870.tar.gz bcm5719-llvm-64be05a87321216adf9cf34ac1dad8670af54870.zip |
[cmake/multilib] Teach libc++'s CMake build to support multilib libdir
suffixes like 'lib64' or 'lib32'.
This support is currently very rhudimentary. We define a variable
LIBCXX_LIBDIR_SUFFIX. In a standalone build of libc++ this can be
directly set as a cached variable to control the multilib suffix used.
When building libc++ within a larger LLVM build, it is hard wired to
whatever LLVM libdir suffix has been selected. If this doesn't work for
someone, just let me know. I'm happy to change it.
This is essentially new functionality for libc++ so I don't expect it to
have any impact for folks until they start setting these variables.
However, I know libc++ is built in a diverse set of environments so just
let me know if this causes you any problems.
llvm-svn: 224926
Diffstat (limited to 'libcxx/lib')
-rw-r--r-- | libcxx/lib/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/lib/CMakeLists.txt b/libcxx/lib/CMakeLists.txt index 12e9f4ad643..02c80d9d4e9 100644 --- a/libcxx/lib/CMakeLists.txt +++ b/libcxx/lib/CMakeLists.txt @@ -104,6 +104,6 @@ set_target_properties(cxx ) install(TARGETS cxx - LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX} - ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX} + LIBRARY DESTINATION lib${LIBCXX_LIBDIR_SUFFIX} + ARCHIVE DESTINATION lib${LIBCXX_LIBDIR_SUFFIX} ) |