Skip to content

Commit 324e63d

Browse files
committed
Ensure that sysroot build works with CARGO_TARGET_DIR set
1 parent 8b9c213 commit 324e63d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build_sysroot/build_sysroot.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ pushd ../ >/dev/null
99
source ./scripts/config.sh
1010
popd >/dev/null
1111

12+
# We expect the target dir in the default location. Guard against the user changing it.
13+
export CARGO_TARGET_DIR=target
14+
1215
# Cleanup for previous run
1316
# v Clean target dir except for build scripts and incremental cache
1417
rm -r target/*/{debug,release}/{build,deps,examples,libsysroot*,native} 2>/dev/null || true

0 commit comments

Comments
 (0)