aboutsummaryrefslogtreecommitdiffhomepage
path: root/bootstrap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index e4acdc4..1665239 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -1,7 +1,11 @@
#!/bin/env sh
set -eo pipefail
-cc=gcc
+if [ -x $CC ]; then
+ cc=gcc
+else
+ cc=$CC
+fi
cflags="-std=c11"
src=$(grep -o '\([_A-Za-z0-9/]\)\+\.c' < Makefile)
X() {