Browse Source

Merge branch 'cb/makefile-apple-clang' into maint

Build update for Apple clang.

* cb/makefile-apple-clang:
  build: catch clang that identifies itself as "$VENDOR clang"
  build: clang version may not be followed by extra words
  build: update detect-compiler for newer Xcode version
maint
Junio C Hamano 3 years ago
parent
commit
689cfaf9e7
  1. 9
      detect-compiler

9
detect-compiler

@ -13,11 +13,11 @@ get_version_line() { @@ -13,11 +13,11 @@ get_version_line() {
}

get_family() {
get_version_line | sed 's/^\(.*\) version [0-9][^ ]* .*/\1/'
get_version_line | sed 's/^\(.*\) version [0-9].*/\1/'
}

get_version() {
get_version_line | sed 's/^.* version \([0-9][^ ]*\) .*/\1/'
get_version_line | sed 's/^.* version \([0-9][^ ]*\).*/\1/'
}

print_flags() {
@ -38,10 +38,7 @@ case "$(get_family)" in @@ -38,10 +38,7 @@ case "$(get_family)" in
gcc)
print_flags gcc
;;
clang)
print_flags clang
;;
"FreeBSD clang")
clang | *" clang")
print_flags clang
;;
"Apple LLVM")

Loading…
Cancel
Save