Use hash instead of which
This commit is contained in:
parent
62ded2aa1d
commit
87c391f8af
1 changed files with 1 additions and 1 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue