Use hash instead of which

This commit is contained in:
Max Brunsfeld 2018-11-13 15:56:03 -08:00
parent 62ded2aa1d
commit 87c391f8af

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# If `CC` isn't set, pick a default compiler
if which -s clang; then
if hash clang 2>/dev/null; then
: ${CC:=clang}
else
: ${CC:=gcc}