From: Gregor Jasny Date: Tue, 29 Jun 2021 09:45:10 +0000 (+0200) Subject: Default to clang compiler on macOS X-Git-Tag: v4.4~170^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F873%2Fhead;p=thirdparty%2Fccache.git Default to clang compiler on macOS --- diff --git a/test/run b/test/run index bf4155b2f..0f3ff97a8 100755 --- 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