]> granicus.if.org Git - clang/commitdiff
[CMake] Support passing CMAKE_VERBOSE_MAKEFILE through to bootstrap builds.
authorChris Bieneman <beanz@apple.com>
Mon, 9 Nov 2015 22:43:10 +0000 (22:43 +0000)
committerChris Bieneman <beanz@apple.com>
Mon, 9 Nov 2015 22:43:10 +0000 (22:43 +0000)
This option enables full verbosity in recursive CMake builds.

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

CMakeLists.txt

index b956f4a68bb30890248ba878504a0bfee77ee802..3aa0baeffae5d55e429d9de51278ca77f0316b33 100644 (file)
@@ -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}