1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-04-25 13:45:09 +02:00

build: catch clang that identifies itself as "$VENDOR clang"

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>
This commit is contained in:
Junio C Hamano 2021-08-06 13:35:37 -07:00
parent 33f13ad7c5
commit f32c5d3716

View File

@ -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
;;
*)