diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2018-12-28 17:15:13 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2018-12-28 17:15:20 +0100 |
| commit | b105534f978ae5a1ffd098524f90366394c225cf (patch) | |
| tree | 41fea3d73db48c6911a1697e8ff06c8b0a225ac7 /build_sysroot/build_sysroot.sh | |
| parent | 8561349ece98ade3a848501d1b3c390f2b3e6911 (diff) | |
| download | rust-b105534f978ae5a1ffd098524f90366394c225cf.tar.gz rust-b105534f978ae5a1ffd098524f90366394c225cf.zip | |
Misc build changes
Diffstat (limited to 'build_sysroot/build_sysroot.sh')
| -rwxr-xr-x | build_sysroot/build_sysroot.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build_sysroot/build_sysroot.sh b/build_sysroot/build_sysroot.sh index 38608e02163..33da1e3dd67 100755 --- a/build_sysroot/build_sysroot.sh +++ b/build_sysroot/build_sysroot.sh @@ -19,7 +19,8 @@ else fi # Build libs -export RUSTFLAGS="$RUSTFLAGS -Z force-unstable-if-unmarked --sysroot ../" +mkdir -p sysroot/lib/rustlib/$TARGET_TRIPLE/lib/ +export RUSTFLAGS="$RUSTFLAGS -Z force-unstable-if-unmarked --sysroot sysroot" if [[ "$1" == "--release" ]]; then channel='release' RUSTFLAGS="$RUSTFLAGS -Zmir-opt-level=3" cargo build --target $TARGET_TRIPLE --release @@ -29,5 +30,4 @@ else fi # Copy files to sysroot -mkdir -p sysroot/lib/rustlib/$TARGET_TRIPLE/lib/ cp target/$TARGET_TRIPLE/$channel/deps/*.rlib sysroot/lib/rustlib/$TARGET_TRIPLE/lib/ |
