ref: 54289f10c0e558019e9ffd49274f8008c909680d
parent: 2e52229810816fd631fbbd0dca6472a30e2e9323
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sat Oct 2 04:24:21 EDT 2021
tests/libc: Improve default root in cc.sh Default root is improved to have a sane value when SCCPREFIX is not defined.
--- a/tests/libc/execute/cc.sh
+++ b/tests/libc/execute/cc.sh
@@ -31,7 +31,7 @@
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