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>

Junio C Hamano committed Aug 6, 2021 at 13:35 UTC f32c5d37161f8444afe016e20be2c6ce6479d793
1 file changed +2 -5
detect-compiler
+2 -5
@@ -38,13 +38,10 @@ case "$(get_family)" in
38 gcc)
39 print_flags gcc
40 ;;
41 -clang)
41 +clang | *" clang")
42 print_flags clang
43 ;;
44 -"FreeBSD clang")
45 - print_flags clang
46 - ;;
47 -"Apple LLVM"|"Apple clang")
44 +"Apple LLVM")
45 print_flags clang
46 ;;
47 *)