builder: Fix the bug with CC and an env with no compiler
ci/woodpecker/push/lint Pipeline was successful Details
ci/woodpecker/push/build Pipeline failed Details

This commit is contained in:
Sameer Rahmani 2023-02-06 18:00:33 +00:00
parent dc61b42d57
commit c59aa96ca5
Signed by: lxsameer
GPG Key ID: B0A4AF28AB9FD90B
2 changed files with 3 additions and 9 deletions

View File

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

View File

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