include_info: Support alternate GCC and Clang versions from MacPorts

This commit is contained in:
Andrew Rogers 2023-06-26 12:35:01 -05:00
commit 86502a872b

View file

@ -21,15 +21,19 @@ get-incl() {
case $(basename "$1") in case $(basename "$1") in
"cc") ;& "cc") ;&
"*-gcc") ;& "*-gcc") ;&
"gcc*") ;&
"gcc") ;& "gcc") ;&
"clang") ;& "clang") ;&
"clang*") ;&
"silly-cc") "silly-cc")
xc='-xc' xc='-xc'
;; ;;
"cxx") ;& "cxx") ;&
"*-g++") ;& "*-g++") ;&
"g++*") ;&
"g++") ;& "g++") ;&
"clang++") ;& "clang++") ;&
"clang++*") ;&
"silly-cxx") "silly-cxx")
xc='-xc++' xc='-xc++'
;; ;;