scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 66f99bceac13dc773446a44f22afd4bdc5f895a8
parent 575a2d87cac49174b7f53aa6ac5f9186c2165697
Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date:   Tue, 15 Sep 2026 18:49:11 +0200

cc/posix: Update PATH with SCCPATH

There are several tools that would exec other tools
and they must exec the tools fron the same location
than the driver and for that reason PATH has to
be updated to prepend the binary directoy of the scc
path.

Diffstat:
Msrc/cmd/scc-cc/posix/scc.sh | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/cmd/scc-cc/posix/scc.sh b/src/cmd/scc-cc/posix/scc.sh @@ -12,6 +12,8 @@ then export SCCLIBPREFIX fi +export PATH=$SCCPREFIX/bin:$PATH + case $1 in cc|cpp|as|ar|addr2line|ld|make|nm|objcopy|objdump|size|strip) tool=$1