include_info: Work with silly-cc and absolute CC/CXX paths

This commit is contained in:
Andrew Rogers 2023-06-26 00:36:59 -05:00
commit f110aba78a

View file

@ -18,15 +18,19 @@ EOUSAGE
# Get C or C++ include paths # Get C or C++ include paths
get-incl() { get-incl() {
case "$1" in case $(basename "$1") in
"cc") ;& "cc") ;&
"*-gcc") ;&
"gcc") ;& "gcc") ;&
"clang") "clang") ;&
"silly-cc")
xc='-xc' xc='-xc'
;; ;;
"cxx") ;& "cxx") ;&
"*-g++") ;&
"g++") ;& "g++") ;&
"clang++") "clang++") ;&
"silly-cxx")
xc='-xc++' xc='-xc++'
;; ;;
esac esac