summaryrefslogtreecommitdiffstats
path: root/libunwind/cmake
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2017-04-16 06:08:44 +0000
committerPetr Hosek <phosek@chromium.org>2017-04-16 06:08:44 +0000
commit9ad496b2c8b9c2c41dc03cbc3e7529fc02a310ef (patch)
treeb9c055a5cf8b8dadef713aa4e4ab38292d551c7b /libunwind/cmake
parentd3a3fb839132828d1001c754a34216634e501fe5 (diff)
downloadbcm5719-llvm-9ad496b2c8b9c2c41dc03cbc3e7529fc02a310ef.tar.gz
bcm5719-llvm-9ad496b2c8b9c2c41dc03cbc3e7529fc02a310ef.zip
[CMake][libunwind] 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. The compile flag handling had a typo which caused these flag not to be properly include. 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/D32071 llvm-svn: 300419
Diffstat (limited to 'libunwind/cmake')
-rw-r--r--libunwind/cmake/Modules/HandleCompilerRT.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/libunwind/cmake/Modules/HandleCompilerRT.cmake b/libunwind/cmake/Modules/HandleCompilerRT.cmake
index 5696ec3b388..9bf88bb4c27 100644
--- a/libunwind/cmake/Modules/HandleCompilerRT.cmake
+++ b/libunwind/cmake/Modules/HandleCompilerRT.cmake
@@ -3,7 +3,7 @@ function(find_compiler_rt_library name dest)
message(FATAL_ERROR "LIBUNWIND_COMPILE_FLAGS must be defined when using this function")
endif()
set(dest "" PARENT_SCOPE)
- set(CLANG_COMMAND ${CMAKE_CXX_COMPILER} ${TARGET_TRIPLE} ${LIBUNWIND_COMPILE_FLAGS}
+ set(CLANG_COMMAND ${CMAKE_CXX_COMPILER} ${LIBUNWIND_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}")
OpenPOWER on IntegriCloud