Merge #169327: cc-wrapper: fix minor problems

...into staging
This commit is contained in:
Vladimír Čunát 2023-04-04 09:25:59 +02:00
commit 834334f2c2
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -46,6 +46,8 @@ while (( "$n" < "$nParams" )); do
-nostdinc) cInclude=0 cxxInclude=0 ;;
-nostdinc++) cxxInclude=0 ;;
-nostdlib) cxxLibrary=0 ;;
-x*-header) dontLink=1 ;; # both `-x c-header` and `-xc-header` are accepted by clang
-xc++*) isCxx=1 ;; # both `-xc++` and `-x c++` are accepted by clang
-x)
case "$p2" in
*-header) dontLink=1 ;;