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-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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue