Skip to content

Commit 6e42550

Browse files
QuzarDCQuzarDC
authored andcommitted
kos-cc: Don't apply verbose output to version check.
As `KOS_GCCVER` relies on the output of `kos-cc -dumpversion` being just the singular value, enabling `KOS_WRAPPERS_VERBOSE` breaks the checking that it does by echoing the call ahead of the output. To avoid this we have a separate use mode for the dumpversion flag which ignores the request for verbose output.
1 parent 86a2f34 commit 6e42550

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

utils/build_wrappers/kos-cc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ for i in $ARGS; do
2020
# a better way to do this. (scan for any .c?)
2121
USEMODE=3
2222
;;
23+
-dumpversion)
24+
# Used for our gcc version test which expects
25+
# *just* the output and no verbose output.
26+
USEMODE=4
27+
;;
2328
*)
2429
;;
2530
esac
@@ -57,4 +62,9 @@ case $USEMODE in
5762
fi
5863
exec ${KOS_CC} ${KOS_CFLAGS} "$@"
5964
;;
65+
66+
4)
67+
# -dumpversion mode. Ignore verbose.
68+
exec ${KOS_CC} "$@"
69+
;;
6070
esac

0 commit comments

Comments
 (0)