[llvm] r282516 - Improve CMake output of host and target triple

Chris Bieneman via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 27 11:08:40 PDT 2016


Author: cbieneman
Date: Tue Sep 27 13:08:40 2016
New Revision: 282516

URL: http://llvm.org/viewvc/llvm-project?rev=282516&view=rev
Log:
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

Modified:
    llvm/trunk/CMakeLists.txt
    llvm/trunk/cmake/modules/GetHostTriple.cmake

Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=282516&r1=282515&r2=282516&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Tue Sep 27 13:08:40 2016
@@ -514,6 +514,8 @@ list(REMOVE_DUPLICATES LLVM_TARGETS_TO_B
 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)
 

Modified: llvm/trunk/cmake/modules/GetHostTriple.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/GetHostTriple.cmake?rev=282516&r1=282515&r2=282516&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/GetHostTriple.cmake (original)
+++ llvm/trunk/cmake/modules/GetHostTriple.cmake Tue Sep 27 13:08:40 2016
@@ -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 )




More information about the llvm-commits mailing list