builder: Fix the bug with CC and an env with no compiler
This commit is contained in:
parent
dc61b42d57
commit
c59aa96ca5
|
@ -21,9 +21,3 @@ pipeline:
|
|||
|
||||
volumes:
|
||||
- serene_config:/root/.serene
|
||||
Failure:
|
||||
image: beta.devheroes.codes/serene/ci:9
|
||||
commands:
|
||||
- cat /woodpecker/src/beta.devheroes.codes/Serene/serene/build/CMakeFiles/CMakeError.log
|
||||
when:
|
||||
status: [ failure ]
|
||||
|
|
6
builder
6
builder
|
@ -38,7 +38,7 @@
|
|||
#
|
||||
# $ VERBOSE=ON ./builder build/
|
||||
#
|
||||
set -e
|
||||
set -xe
|
||||
|
||||
command=$1
|
||||
VERSION="0.8.0"
|
||||
|
@ -59,11 +59,11 @@ source "$ME/scripts/devfs.sh"
|
|||
# whatever you want. But just be aware of the fact that we might not be able
|
||||
# to help you in case of any issue.
|
||||
if [[ "$CC" = "" ]]; then
|
||||
CC=$(which clang)
|
||||
CC=$(which clang || echo "Clang_not_found")
|
||||
export CC
|
||||
fi
|
||||
if [[ "$CXX" = "" ]]; then
|
||||
CXX=$(which clang++)
|
||||
CXX=$(which clang++ || echo "Clang++_not_found")
|
||||
export CXX
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue