diff options
author | Chris Bieneman <beanz@apple.com> | 2016-09-27 18:08:40 +0000 |
---|---|---|
committer | Chris Bieneman <beanz@apple.com> | 2016-09-27 18:08:40 +0000 |
commit | 0775a2326e39c0a1c3112f16f4e0ee408c3b97bb (patch) | |
tree | 57a603fe398f3a84166f4b4a154ff1ce4342fb7f | |
parent | 237c84540f10b6eb35d9bef1db3a97b547d889bf (diff) | |
download | bcm5719-llvm-0775a2326e39c0a1c3112f16f4e0ee408c3b97bb.tar.gz bcm5719-llvm-0775a2326e39c0a1c3112f16f4e0ee408c3b97bb.zip |
Improve CMake output of host and target triple
Summary:
The previous output was confusing as it would output "Taget triple:
x86_64-unknown-linux-gnu" even when LLVM_HOST_TRIPLE or
LLVM_DEFAULT_TARGET_TRIPLE were set on the CMake command line
Patch by: Alex Richardson!
Reviewers: beanz
Subscribers: Eugene.Zelenko
Differential Revision: https://reviews.llvm.org/D17067
llvm-svn: 282516
-rw-r--r-- | llvm/CMakeLists.txt | 2 | ||||
-rw-r--r-- | llvm/cmake/modules/GetHostTriple.cmake | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt index 8d808664c1e..e6fac3249ed 100644 --- a/llvm/CMakeLists.txt +++ b/llvm/CMakeLists.txt @@ -514,6 +514,8 @@ list(REMOVE_DUPLICATES LLVM_TARGETS_TO_BUILD) set(LLVM_DEFAULT_TARGET_TRIPLE "${LLVM_HOST_TRIPLE}" CACHE STRING "Default target for which LLVM will generate code." ) set(TARGET_TRIPLE "${LLVM_DEFAULT_TARGET_TRIPLE}") +message(STATUS "LLVM host triple: ${LLVM_HOST_TRIPLE}") +message(STATUS "LLVM default target triple: ${LLVM_DEFAULT_TARGET_TRIPLE}") include(HandleLLVMOptions) diff --git a/llvm/cmake/modules/GetHostTriple.cmake b/llvm/cmake/modules/GetHostTriple.cmake index 5de710c7ede..0cad1db4eff 100644 --- a/llvm/cmake/modules/GetHostTriple.cmake +++ b/llvm/cmake/modules/GetHostTriple.cmake @@ -26,5 +26,4 @@ function( get_host_triple var ) set( value ${TT_OUT} ) endif( MSVC ) set( ${var} ${value} PARENT_SCOPE ) - message(STATUS "Target triple: ${value}") endfunction( get_host_triple var ) |