]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Default to clang compiler on macOS 873/head
authorGregor Jasny <gregor.jasny@logmein.com>
Tue, 29 Jun 2021 09:45:10 +0000 (11:45 +0200)
committerGregor Jasny <gregor.jasny@logmein.com>
Tue, 29 Jun 2021 09:48:46 +0000 (11:48 +0200)
test/run

index bf4155b2f83b385f198e2c55660a49cc91fa3a5b..0f3ff97a803f1cea05f75e8656c5de5d98e46a62 100755 (executable)
--- a/test/run
+++ b/test/run
@@ -451,6 +451,8 @@ export PATH
 
 if [ -n "$CC" ]; then
     COMPILER="$CC"
+elif [[ "$OSTYPE" == "darwin"* && -x "$(command -v clang)" ]]; then
+    COMPILER=clang
 else
     COMPILER=gcc
 fi