r252523 - [CMake] Support passing CMAKE_VERBOSE_MAKEFILE through to bootstrap builds.

Chris Bieneman via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 9 14:43:10 PST 2015


Author: cbieneman
Date: Mon Nov  9 16:43:10 2015
New Revision: 252523

URL: http://llvm.org/viewvc/llvm-project?rev=252523&view=rev
Log:
[CMake] Support passing CMAKE_VERBOSE_MAKEFILE through to bootstrap builds.

This option enables full verbosity in recursive CMake builds.

Modified:
    cfe/trunk/CMakeLists.txt

Modified: cfe/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CMakeLists.txt?rev=252523&r1=252522&r2=252523&view=diff
==============================================================================
--- cfe/trunk/CMakeLists.txt (original)
+++ cfe/trunk/CMakeLists.txt Mon Nov  9 16:43:10 2015
@@ -621,6 +621,10 @@ if (CLANG_ENABLE_BOOTSTRAP)
     COMMENT "Clobberring bootstrap build and stamp directories"
     )
 
+  if(CMAKE_VERBOSE_MAKEFILE)
+    set(verbose -DCMAKE_VERBOSE_MAKEFILE=On)
+  endif()
+
   ExternalProject_Add(bootstrap
     DEPENDS clang ${LTO_DEP}
     PREFIX bootstrap
@@ -636,7 +640,7 @@ if (CLANG_ENABLE_BOOTSTRAP)
                 -DCMAKE_CXX_COMPILER=${LLVM_RUNTIME_OUTPUT_INTDIR}/clang++
                 -DCMAKE_C_COMPILER=${LLVM_RUNTIME_OUTPUT_INTDIR}/clang
                 -DCMAKE_ASM_COMPILER=${LLVM_RUNTIME_OUTPUT_INTDIR}/clang
-                ${LTO_LIBRARY} ${LTO_AR} ${LTO_RANLIB}
+                ${LTO_LIBRARY} ${LTO_AR} ${LTO_RANLIB} ${verbose}
     INSTALL_COMMAND ""
     STEP_TARGETS configure build
     ${cmake_3_4_USES_TERMINAL_OPTIONS}




More information about the cfe-commits mailing list