Skip to content

Commit f32c5d3

Browse files
committed
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 <[email protected]>
1 parent 33f13ad commit f32c5d3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

detect-compiler

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,10 @@ case "$(get_family)" in
3838
gcc)
3939
print_flags gcc
4040
;;
41-
clang)
41+
clang | *" clang")
4242
print_flags clang
4343
;;
44-
"FreeBSD clang")
45-
print_flags clang
46-
;;
47-
"Apple LLVM"|"Apple clang")
44+
"Apple LLVM")
4845
print_flags clang
4946
;;
5047
*)

0 commit comments

Comments
 (0)