commit 4d873268c8a3982aa46a627873608a022d9186f7
parent 889be8059b950fe455e2f628438e2a9fee82331c
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:
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