scc

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

commit 54289f10c0e558019e9ffd49274f8008c909680d
parent 2e52229810816fd631fbbd0dca6472a30e2e9323
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat,  2 Oct 2021 08:24:21 +0200

tests/libc: Improve default root in cc.sh

Default root is improved to have a sane value when SCCPREFIX
is not defined.

Diffstat:
Mtests/libc/execute/cc.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/libc/execute/cc.sh b/tests/libc/execute/cc.sh @@ -31,7 +31,7 @@ done sys=${sys:-`uname | tr 'A-Z' 'a-z'`} abi=${abi:-amd64} out=${out:-a.out} -root=${root:-$SCCPREFIX} +root=${root:-${SCCPREFIX:-../../..}} inc=$root/include arch_inc=$inc/bits/$abi sys_inc=$inc/bits/$sys