summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rwxr-xr-xutils/sb27
1 files changed, 6 insertions, 1 deletions
diff --git a/utils/sb2 b/utils/sb2
index bb4875e..14db265 100755
--- a/utils/sb2
+++ b/utils/sb2
@@ -23,7 +23,12 @@ if [ -z "$SBOX_TARGET_ROOT" ]; then
SBOX_TARGET_ROOT="$(readlink -f -n $PWD)"
fi
-export SBOX_LIBSB2 SBOX_REDIR_SCRIPTS SBOX_TARGET_ROOT SBOX_GCCWRAPPER SBOX_TARGET_COMPILER
+SBOX_MAPPING_CACHE=$SBOX_TARGET_ROOT.sb2cache
+if [ ! -d $SBOX_MAPPING_CACHE ]; then
+ mkdir -p $SBOX_MAPPING_CACHE
+fi
+
+export SBOX_LIBSB2 SBOX_REDIR_SCRIPTS SBOX_TARGET_ROOT SBOX_MAPPING_CACHE SBOX_GCCWRAPPER SBOX_TARGET_COMPILER
cd $SBOX_TARGET_ROOT