diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2020-08-06 09:02:50 +0200 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2020-08-06 16:23:15 +0200 |
commit | fa7e871bf009836c5229cc75ac429ce9256a4d0f (patch) | |
tree | e342ed7fc539b5c14c12e86786c9b9e0260ac65a /ci | |
parent | 0a991d8161c77313564a703216c3825c2b36cd24 (diff) | |
download | ccache-fa7e871bf009836c5229cc75ac429ce9256a4d0f.tar.gz |
ci/build: Make it possible to specify CC for tests
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/build | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |