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 <areber@redhat.com>
This commit is contained in:
Adrian Reber 2020-12-29 08:47:26 +00:00 committed by Andrei Vagin
parent baad84efb2
commit b83a1dd956

View file

@ -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