diff options
author | Petr Hosek <phosek@chromium.org> | 2017-04-16 02:25:55 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2017-04-16 02:25:55 +0000 |
commit | 539b1ec9d8cdd6ad9883d59faa6a8949ab4d42da (patch) | |
tree | 7fe908958df27e1ea8b1faaf038098972eafa935 /libcxx/cmake | |
parent | 92e61e93ffb3cf02e037b8b6369ade33e54fe2e3 (diff) | |
download | bcm5719-llvm-539b1ec9d8cdd6ad9883d59faa6a8949ab4d42da.tar.gz bcm5719-llvm-539b1ec9d8cdd6ad9883d59faa6a8949ab4d42da.zip |
[CMake][libcxx] Fix the --target and --gcc-toolchain flag handling
CMake has the problem with the single dash variant because of the
space, so use the double dash with equal sign version. We also
don't have to pass the target triple when checking for compiler-rt
since that flag is already included in compile flags now.
Differential Revision: https://reviews.llvm.org/D32068
llvm-svn: 300409
Diffstat (limited to 'libcxx/cmake')
-rw-r--r-- | libcxx/cmake/Modules/HandleCompilerRT.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/cmake/Modules/HandleCompilerRT.cmake b/libcxx/cmake/Modules/HandleCompilerRT.cmake index 41cdd44b3c9..e9da3c43a21 100644 --- a/libcxx/cmake/Modules/HandleCompilerRT.cmake +++ b/libcxx/cmake/Modules/HandleCompilerRT.cmake @@ -3,7 +3,7 @@ function(find_compiler_rt_library name dest) message(FATAL_ERROR "LIBCXX_COMPILE_FLAGS must be defined when using this function") endif() set(dest "" PARENT_SCOPE) - set(CLANG_COMMAND ${CMAKE_CXX_COMPILER} ${TARGET_TRIPLE} ${LIBCXX_COMPILE_FLAGS} + set(CLANG_COMMAND ${CMAKE_CXX_COMPILER} ${LIBCXX_COMPILE_FLAGS} "--rtlib=compiler-rt" "--print-libgcc-file-name") if (CMAKE_CXX_COMPILER_ID MATCHES Clang AND CMAKE_CXX_COMPILER_TARGET) list(APPEND CLANG_COMMAND "--target=${CMAKE_CXX_COMPILER_TARGET}") |