From f110aba78a035edff38b76bcdabc1ee62de4ad31 Mon Sep 17 00:00:00 2001 From: Andrew Rogers Date: Mon, 26 Jun 2023 00:36:59 -0500 Subject: [PATCH] include_info: Work with silly-cc and absolute CC/CXX paths --- scripts/include_info | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/include_info b/scripts/include_info index fb928bd..7854c43 100755 --- a/scripts/include_info +++ b/scripts/include_info @@ -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