From: Joel Rosdahl Date: Thu, 6 Aug 2020 07:02:50 +0000 (+0200) Subject: ci/build: Make it possible to specify CC for tests X-Git-Tag: v4.0~215 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fa7e871bf009836c5229cc75ac429ce9256a4d0f;p=thirdparty%2Fccache.git ci/build: Make it possible to specify CC for tests --- diff --git a/ci/build b/ci/build index 4baeded49..afa05ab78 100755 --- a/ci/build +++ b/ci/build @@ -18,5 +18,7 @@ else cd ${BUILDDIR:-build} ${CMAKE_PREFIX:-} cmake ${CMAKE_PARAMS:-} ${CCACHE_LOC:-..} ${CMAKE_PREFIX:-} cmake --build . ${BUILDEXTRAFLAGS:-} -- -j$JOBS - [ "${RUN_TESTS:-1}" -ne "1" ] || ctest --output-on-failure -j$JOBS "$@" + if [ "${RUN_TESTS:-1}" -eq 1 ]; then + CC=${TEST_CC:-${CC}} ctest --output-on-failure -j$JOBS "$@" + fi fi