Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 1 | Don't wrap CC in quotes as our CC has options and this breaks command lookup. |
| 2 | |
| 3 | Upstream-Status: Backport [https://git.sdaoden.eu/browse/s-nail.git/commit/?h=next&id=c08f3c898def715edf9164e169c3b3522f4c7a1f] |
| 4 | Signed-off-by: Ross Burton <ross.burton@arm.com> |
| 5 | |
| 6 | From c08f3c898def715edf9164e169c3b3522f4c7a1f Mon Sep 17 00:00:00 2001 |
| 7 | From: Steffen Nurpmeso <steffen@sdaoden.eu> |
| 8 | Date: Tue, 1 Feb 2022 18:54:16 +0100 |
| 9 | Subject: [-] Remove even more bogus quotation marks (Ross Burton).. |
| 10 | |
| 11 | On top of (mk/su-find-command.sh: clearly define space behaviour) |
| 12 | and (mx-test.sh: remove bogus quotation marks) Ross Burton |
| 13 | reported some more on the ML. I looked around and hope this was it. |
| 14 | --- |
| 15 | mk/pcb-cc.sh | 2 +- |
| 16 | mk/su-make-errors.sh | 2 +- |
| 17 | 2 files changed, 2 insertions(+), 2 deletions(-) |
| 18 | |
| 19 | diff --git a/mk/pcb-cc.sh b/mk/pcb-cc.sh |
| 20 | index 2697c5cf..075f8988 100755 |
| 21 | --- a/mk/pcb-cc.sh |
| 22 | +++ b/mk/pcb-cc.sh |
| 23 | @@ -18,7 +18,7 @@ if dowemayhave "$@"; then |
| 24 | if acmd_set CC clang || acmd_set CC gcc || |
| 25 | acmd_set CC tcc || acmd_set CC pcc || |
| 26 | acmd_set CC c89 || acmd_set CC c99; then |
| 27 | - exec "$CC" "$@" |
| 28 | + exec $CC "$@" |
| 29 | else |
| 30 | echo >&2 'boing booom tschak' |
| 31 | echo >&2 'ERROR: I cannot find a compiler!' |
| 32 | diff --git a/mk/su-make-errors.sh b/mk/su-make-errors.sh |
| 33 | index f5c5144e..7fede15e 100644 |
| 34 | --- a/mk/su-make-errors.sh |
| 35 | +++ b/mk/su-make-errors.sh |
| 36 | @@ -157,7 +157,7 @@ compile_time() { # {{{ |
| 37 | # The problem is that at least (some versions of) gcc mangle output. |
| 38 | # Ensure we get both arguments on one line. |
| 39 | # While here sort numerically. |
| 40 | - "${CC}" -E "${TARGET}".c | |
| 41 | + ${CC} -E "${TARGET}".c | |
| 42 | ${awk} ' |
| 43 | function stripsym(sym){ |
| 44 | sym = substr(sym, 2) |
| 45 | -- |