Skip to content

Commit

Permalink
Update build script to exit if clang is not present
Browse files Browse the repository at this point in the history
  • Loading branch information
bierbaum committed Apr 29, 2022
1 parent b28d90e commit 8297f9f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/linux-build.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
#!/bin/bash -e
# fetch and extract the rust toolchain


function die() {
echo "$@" > /dev/stderr
exit 1
}

##
## Preconditions
##
which clang || echo "Please run this build with an LLVM toolchain present (e.g. under scl)" 1>&2
which clang || die "Please run this build with an LLVM toolchain present (e.g. under scl)"

rm -rf toolchain
echo "Fetching toolchain..."
Expand Down

0 comments on commit 8297f9f

Please sign in to comment.