diff options
author | Shane Parris <shane.lee.parris@gmail.com> | 2018-05-25 13:29:53 (GMT) |
---|---|---|
committer | Shane Parris <shane.lee.parris@gmail.com> | 2018-05-25 13:29:53 (GMT) |
commit | 1f994d9fdcf70ea16a5a3812d2151d9b7f27f784 (patch) | |
tree | 5659134c3f00a721d1639af0c08dee53b5efbadf /bootstrap | |
parent | a9bab1443eed2763cd972ac2c50942667c13cd8d (diff) | |
download | CMake-1f994d9fdcf70ea16a5a3812d2151d9b7f27f784.zip CMake-1f994d9fdcf70ea16a5a3812d2151d9b7f27f784.tar.gz CMake-1f994d9fdcf70ea16a5a3812d2151d9b7f27f784.tar.bz2 |
bootstrap: Use ccache in script-generated makefile
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1250,6 +1250,12 @@ else echo "${cmake_cxx_compiler} does not have <ext/stdio_filebuf.h>" fi +if [ -n "${cmake_ccache_enabled}" ]; then + echo "Building CMake with ccache" + cmake_c_compiler="ccache ${cmake_c_compiler}" + cmake_cxx_compiler="ccache ${cmake_cxx_compiler}" +fi + # Just to be safe, let us store compiler and flags to the header file cmake_bootstrap_version='$Revision$' @@ -1536,10 +1542,6 @@ cd "${cmake_binary_dir}" # build with same compiler and make CC="${cmake_c_compiler}" CXX="${cmake_cxx_compiler}" -if [ -n "${cmake_ccache_enabled}" ]; then - CC="ccache ${CC}" - CXX="ccache ${CXX}" -fi MAKE="${cmake_make_processor}" export CC export CXX |