Skip to content

Commit f6bb209

Browse files
carenasgitster
authored andcommitted
build: update detect-compiler for newer Xcode version
1da1580 (Makefile: detect compiler and enable more warnings in DEVELOPER=1, 2018-04-14) uses the output of the compiler banner to detect the compiler family. Apple had since changed the wording used to refer to its compiler as clang instead of LLVM as shown by: $ cc --version Apple clang version 12.0.5 (clang-1205.0.22.9) Target: x86_64-apple-darwin20.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin so update the script to match, and allow DEVELOPER=1 to work as expected again in macOS. Signed-off-by: Carlo Marcelo Arenas Belón <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ebf3c04 commit f6bb209

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

detect-compiler

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ clang)
4444
"FreeBSD clang")
4545
print_flags clang
4646
;;
47-
"Apple LLVM")
47+
"Apple LLVM"|"Apple clang")
4848
print_flags clang
4949
;;
5050
*)

0 commit comments

Comments
 (0)