summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2020-08-06 09:02:50 +0200
committerJoel Rosdahl <joel@rosdahl.net>2020-08-06 16:23:15 +0200
commitfa7e871bf009836c5229cc75ac429ce9256a4d0f (patch)
treee342ed7fc539b5c14c12e86786c9b9e0260ac65a /ci
parent0a991d8161c77313564a703216c3825c2b36cd24 (diff)
downloadccache-fa7e871bf009836c5229cc75ac429ce9256a4d0f.tar.gz
ci/build: Make it possible to specify CC for tests
Diffstat (limited to 'ci')
-rwxr-xr-xci/build4
1 files changed, 3 insertions, 1 deletions
diff --git a/ci/build b/ci/build
index 4baeded4..afa05ab7 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