[CMake] Support passing CMAKE_VERBOSE_MAKEFILE through to bootstrap builds.

This option enables full verbosity in recursive CMake builds.

llvm-svn: 252523
This commit is contained in:
Chris Bieneman 2015-11-09 22:43:10 +00:00
parent ebffcbeefa
commit 4e3b36947b
1 changed files with 5 additions and 1 deletions

View 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}