1

Revert "resolve ZIG_LIB_DIR before passing it to zig"

This reverts commit 3a8c2eecfe.

Causes the dependency paths to be absolute.
This commit is contained in:
Motiejus Jakštys 2022-10-05 14:48:19 +03:00
parent 3a8c2eecfe
commit 5743865c26

View File

@ -127,7 +127,7 @@ set -e
if [ -d external/zig_sdk/lib ]; then if [ -d external/zig_sdk/lib ]; then
ZIG_LIB_DIR=external/zig_sdk/lib ZIG_LIB_DIR=external/zig_sdk/lib
else else
ZIG_LIB_DIR="$(realpath "$(dirname "$0")/../../lib")" ZIG_LIB_DIR="$(dirname "$0")/../../lib"
fi fi
export ZIG_LIB_DIR export ZIG_LIB_DIR
export ZIG_LOCAL_CACHE_DIR="{cache_prefix}/bazel-zig-cc" export ZIG_LOCAL_CACHE_DIR="{cache_prefix}/bazel-zig-cc"
@ -141,7 +141,7 @@ set -e
if [ -d external/zig_sdk/lib ]; then if [ -d external/zig_sdk/lib ]; then
ZIG_LIB_DIR=external/zig_sdk/lib ZIG_LIB_DIR=external/zig_sdk/lib
else else
ZIG_LIB_DIR="$(realpath "$(dirname "$0")/../../lib")" ZIG_LIB_DIR="$(dirname "$0")/../../lib"
fi fi
if [ -n "$TMPDIR" ]; then if [ -n "$TMPDIR" ]; then
_cache_prefix=$TMPDIR _cache_prefix=$TMPDIR