mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +00:00
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:
parent
baad84efb2
commit
b83a1dd956
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue