include_info: Work with silly-cc and absolute CC/CXX paths
This commit is contained in:
parent
1f24e094ca
commit
f110aba78a
1 changed files with 7 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue