mirror of
https://github.com/git/git.git
synced 2024-05-05 05:56:13 +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:
parent
33f13ad7c5
commit
f32c5d3716
|
@ -38,13 +38,10 @@ case "$(get_family)" in
|
||||||
gcc)
|
gcc)
|
||||||
print_flags gcc
|
print_flags gcc
|
||||||
;;
|
;;
|
||||||
clang)
|
clang | *" clang")
|
||||||
print_flags clang
|
print_flags clang
|
||||||
;;
|
;;
|
||||||
"FreeBSD clang")
|
"Apple LLVM")
|
||||||
print_flags clang
|
|
||||||
;;
|
|
||||||
"Apple LLVM"|"Apple clang")
|
|
||||||
print_flags clang
|
print_flags clang
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
Loading…
Reference in New Issue