diff --git a/.gitlab-ci/container/build-deqp-runner.sh b/.gitlab-ci/container/build-deqp-runner.sh index 95c6b332a87..92811823a3f 100644 --- a/.gitlab-ci/container/build-deqp-runner.sh +++ b/.gitlab-ci/container/build-deqp-runner.sh @@ -34,6 +34,12 @@ else fi if [[ "$RUST_TARGET" != *-android ]]; then + # When CC (/usr/lib/ccache/gcc) variable is set, the rust compiler uses + # this variable when cross-compiling arm32 and build fails for zsys-sys. + # So unset the CC variable when cross-compiling for arm32. + if [ "$RUST_TARGET" = "armv7-unknown-linux-gnueabihf" ]; then + unset CC + fi cargo install --locked \ -j ${FDO_CI_CONCURRENT:-4} \ --root /usr/local \