1
0
Fork 0

env.sh: force CC=clang if present

Change-Id: I2369f4ad357b079c2525b7e4cea6d0178aca4c69
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1630
Reviewed-by: q3k <q3k@hackerspace.pl>
master
implr 2023-09-23 01:42:20 +02:00 committed by implr
parent 95b8c57415
commit 2281b5b618
1 changed files with 6 additions and 0 deletions

6
env.sh
View File

@ -16,6 +16,12 @@ hscloud_path="$hscloud_root/bazel-bin/tools:$hscloud_root/bazel-bin/cluster/tool
unset -f hscloud_root
unset -f hscloud_path
if command -v clang &> /dev/null; then
# if we have clang, use it
# avoids weird PATH issues with linkers, eg https://github.com/bazelbuild/bazel/issues/18834
export CC=clang
fi
# Leftover junk. This should be removed, as env.sh is now optional.
# Do _not_ add more aliases!
alias bajzel=bazel