diff options
author | Petr Hosek <phosek@chromium.org> | 2017-12-21 20:04:10 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2017-12-21 20:04:10 +0000 |
commit | 9090db487e55a83176aecb2810e3f5f2eee39cf1 (patch) | |
tree | aacad773d9310c4fbc1913e735806503868cabca | |
parent | 128f286f13d7b9326d2cb82b898338e6d8fd98f7 (diff) | |
download | compiler-rt-9090db487e55a83176aecb2810e3f5f2eee39cf1.tar.gz |
[CMake] Allow passing extra CMake arguments to custom libc++
This can be used to customize the libc++ build.
Differential Revision: https://reviews.llvm.org/D41103
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@321299 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | cmake/Modules/AddCompilerRT.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/Modules/AddCompilerRT.cmake b/cmake/Modules/AddCompilerRT.cmake index d4f636857..139b61400 100644 --- a/cmake/Modules/AddCompilerRT.cmake +++ b/cmake/Modules/AddCompilerRT.cmake @@ -469,7 +469,7 @@ macro(add_custom_libcxx name prefix) message(FATAL_ERROR "libcxx not found!") endif() - cmake_parse_arguments(LIBCXX "" "" "DEPS;CFLAGS" ${ARGN}) + cmake_parse_arguments(LIBCXX "" "" "DEPS;CFLAGS;CMAKE_ARGS" ${ARGN}) foreach(flag ${LIBCXX_CFLAGS}) set(flagstr "${flagstr} ${flag}") endforeach() @@ -491,6 +491,7 @@ macro(add_custom_libcxx name prefix) -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR> -DLLVM_PATH=${LLVM_MAIN_SRC_DIR} -DLIBCXX_STANDALONE_BUILD=On + ${LIBCXX_CMAKE_ARGS} LOG_BUILD 1 LOG_CONFIGURE 1 LOG_INSTALL 1 |