From 87c391f8af9dc67495cac2588558e68a8783c6f4 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Tue, 13 Nov 2018 15:56:03 -0800 Subject: [PATCH] Use hash instead of which --- script/build-runtime | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/build-runtime b/script/build-runtime index e302b625..9e09b836 100755 --- a/script/build-runtime +++ b/script/build-runtime @@ -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}