X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=bootstrap.sh;h=9355b27e098264b0fc4d9de99d7a8f5f0f725c7a;hb=217889f81407de43d8de469ad93e05b7d334ae0c;hp=48a4f206bb75b673280bc5fc331dc8ec2608b4e5;hpb=6e02286dcbd62b8f5ef56987c2298d54b689ad9c;p=builder.git diff --git a/bootstrap.sh b/bootstrap.sh index 48a4f20..9355b27 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -15,7 +15,11 @@ else MULTIARCH="i386-linux-gnu" fi if [ "$SYSTEM" = "Darwin" ]; then - COMPILER="clang++" + if which clang++ >/dev/null; then + COMPILER="clang++" + else + COMPILER="g++" + fi else COMPILER="g++" fi