]> granicus.if.org Git - llvm/commitdiff
Improve CMake output of host and target triple
authorChris Bieneman <beanz@apple.com>
Tue, 27 Sep 2016 18:08:40 +0000 (18:08 +0000)
committerChris Bieneman <beanz@apple.com>
Tue, 27 Sep 2016 18:08:40 +0000 (18:08 +0000)
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282516 91177308-0d34-0410-b5e6-96231b3b80d8

CMakeLists.txt
cmake/modules/GetHostTriple.cmake

index 8d808664c1e96f1b5f33ad1672402ba88c354cda..e6fac3249ed8cfbb418455643a4a7128f250f255 100644 (file)
@@ -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)
 
index 5de710c7ede0b910528f8447e9086ab4a079b500..0cad1db4effee791d348afe87a2774723b88ae55 100644 (file)
@@ -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 )