From b83a1dd956462b6fa6271ac41f2fc503eb4ac852 Mon Sep 17 00:00:00 2001 From: Adrian Reber Date: Tue, 29 Dec 2020 08:47:26 +0000 Subject: [PATCH] ci: also use clang for compel-host-bin Running in an environment with clang and without gcc even installed does not work as compel-host-bin uses HOSTCC which defaults to gcc. If CLANG=1 is set this also sets HOSTCC to clang to actually build compel-host-bin with clang and not with gcc. Signed-off-by: Adrian Reber --- scripts/ci/run-ci-tests.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/ci/run-ci-tests.sh b/scripts/ci/run-ci-tests.sh index 900bba594..c64fa1190 100755 --- a/scripts/ci/run-ci-tests.sh +++ b/scripts/ci/run-ci-tests.sh @@ -55,6 +55,10 @@ ci_prep () { if [ "$CLANG" = "1" ]; then # clang support CC=clang + # If this is running in an environment without gcc installed + # compel-host-bin will fail as it is using HOSTCC. Also + # set HOSTCC to clang to build compel-host-bin with it. + export HOSTCC=clang else CC=gcc fi