diff options
author | Eike Ziller <eike.ziller@qt.io> | 2020-10-20 10:37:22 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2020-10-20 12:26:38 +0000 |
commit | d870a7a4535e801e1161ececccd0d85dca0a3408 (patch) | |
tree | 665413c9a4e5f2e22118ff86b8528d464d1015e6 /scripts | |
parent | fb88a018ef7c2efd0758018bd1697d21561c4b3c (diff) | |
download | qbs-d870a7a4535e801e1161ececccd0d85dca0a3408.tar.gz |
cmake: Remove ccache magic
Setting the compiler/linker prefix globally heavily interferes with
other setups. For example it breaks compiling resources with rc.exe on
Windows. Use CMAKE_C_COMPILER_LAUNCHER=ccache and
CMAKE_CXX_COMPILER_LAUNCHER=ccache when calling cmake instead.
Change-Id: Id7fa7a3ce8b19b658eee0b661c9dfa060c3d62c9
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build-qbs-with-cmake.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build-qbs-with-cmake.sh b/scripts/build-qbs-with-cmake.sh index 96a3a207a..73ba353b8 100755 --- a/scripts/build-qbs-with-cmake.sh +++ b/scripts/build-qbs-with-cmake.sh @@ -45,7 +45,7 @@ set -e # export QBS_AUTOTEST_SETTINGS_DIR="${QBS_AUTOTEST_SETTINGS_DIR:-/tmp/qbs-settings}" -BUILD_OPTIONS="-DWITH_UNIT_TESTS=1 -DWITH_PROJECT_FILE_UPDATES=1 ${BUILD_OPTIONS}" +BUILD_OPTIONS="-DWITH_UNIT_TESTS=1 -DWITH_PROJECT_FILE_UPDATES=1 -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache ${BUILD_OPTIONS}" QMAKE_PATH="${QMAKE_PATH:-$(which qmake)}" QT_DIR=$(dirname ${QMAKE_PATH})/../ |