Skip to content

Commit beed71b

Browse files
committed
Support rustup override
1 parent 6b7e0f9 commit beed71b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rebuild-libcore.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ SRC_DIR=$SYSROOT/lib/rustlib/src/rust/src/libcore
66
LIB_DIR=$SYSROOT/lib/rustlib/$TARGET/lib
77

88
cp $(dirname $0)/$TARGET.json $SRC_DIR
9-
cd $SRC_DIR
10-
cargo rustc --release --target=$TARGET -- -C panic=abort
9+
# Don’t cd into $SRC_DIR, use current directory’s rustup override.
10+
cargo rustc --manifest-path $SRC_DIR/Cargo.toml --release --target=$TARGET -- -C panic=abort
1111
mkdir -p $LIB_DIR
12-
cp target/$TARGET/release/libcore.rlib $LIB_DIR
12+
cp $SRC_DIR/target/$TARGET/release/libcore.rlib $LIB_DIR

0 commit comments

Comments
 (0)