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-incl() {
case "$1" in
case $(basename "$1") in
"cc") ;&
"*-gcc") ;&
"gcc") ;&
"clang")
"clang") ;&
"silly-cc")
xc='-xc'
;;
"cxx") ;&
"*-g++") ;&
"g++") ;&
"clang++")
"clang++") ;&
"silly-cxx")
xc='-xc++'
;;
esac