]> git.ipfire.org Git - thirdparty/git.git/commitdiff
build: catch clang that identifies itself as "$VENDOR clang"
authorJunio C Hamano <gitster@pobox.com>
Fri, 6 Aug 2021 20:35:37 +0000 (13:35 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 6 Aug 2021 20:35:37 +0000 (13:35 -0700)
The case statement in detect-compiler notices 'clang', 'FreeBSD
clang' and 'Apple clang', but there are other platforms that follow
the '$VENDOR clang' pattern (e.g. Debian).

Generalize the pattern to catch them.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
detect-compiler

index 955be1c9068f81797daf570747c1d46d638343c9..11d60da5b72512332185c703658cee6d14f551bc 100755 (executable)
@@ -38,13 +38,10 @@ case "$(get_family)" in
 gcc)
        print_flags gcc
        ;;
-clang)
+clang | *" clang")
        print_flags clang
        ;;
-"FreeBSD clang")
-       print_flags clang
-       ;;
-"Apple LLVM"|"Apple clang")
+"Apple LLVM")
        print_flags clang
        ;;
 *)