diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2019-08-25 16:30:36 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2019-08-25 16:30:36 +0200 |
| commit | f6c39fa701f42b9fd266261aec967e2eb6d2a70d (patch) | |
| tree | 0c381bd3ed05c13e4a7aa0eaa7e01dcae0b2ae37 /build_sysroot | |
| parent | 02b68aa74787eabaf98bf9dc6b909cfae7b8f488 (diff) | |
| download | rust-f6c39fa701f42b9fd266261aec967e2eb6d2a70d.tar.gz rust-f6c39fa701f42b9fd266261aec967e2eb6d2a70d.zip | |
Rustup to rustc 1.39.0-nightly (eeba189cf 2019-08-24)
Diffstat (limited to 'build_sysroot')
| -rw-r--r-- | build_sysroot/Cargo.toml | 4 | ||||
| -rwxr-xr-x | build_sysroot/build_sysroot.sh | 11 | ||||
| -rw-r--r-- | build_sysroot/rustc-std-workspace-alloc/Cargo.toml | 15 | ||||
| -rw-r--r-- | build_sysroot/rustc-std-workspace-alloc/lib.rs | 5 |
4 files changed, 3 insertions, 32 deletions
diff --git a/build_sysroot/Cargo.toml b/build_sysroot/Cargo.toml index c5bf0705c19..1039f4613ef 100644 --- a/build_sysroot/Cargo.toml +++ b/build_sysroot/Cargo.toml @@ -8,12 +8,14 @@ core = { path = "./sysroot_src/src/libcore" } compiler_builtins = "0.1" alloc = { path = "./sysroot_src/src/liballoc" } std = { path = "./sysroot_src/src/libstd", features = ["panic_unwind"] } +test = { path = "./sysroot_src/src/libtest" } alloc_system = { path = "./alloc_system" } [patch.crates-io] rustc-std-workspace-core = { path = "./sysroot_src/src/tools/rustc-std-workspace-core" } -rustc-std-workspace-alloc = { path = "./rustc-std-workspace-alloc" } +rustc-std-workspace-alloc = { path = "./sysroot_src/src/tools/rustc-std-workspace-alloc" } +rustc-std-workspace-std = { path = "./sysroot_src/src/tools/rustc-std-workspace-std" } [profile.dev] # FIXME On macOS statics and promoted constants have the wrong alignment. This causes a debug diff --git a/build_sysroot/build_sysroot.sh b/build_sysroot/build_sysroot.sh index 37aa7c1908d..26f6607b2aa 100755 --- a/build_sysroot/build_sysroot.sh +++ b/build_sysroot/build_sysroot.sh @@ -29,14 +29,3 @@ fi # Copy files to sysroot mkdir -p sysroot/lib/rustlib/$TARGET_TRIPLE/lib/ cp -r target/$TARGET_TRIPLE/$sysroot_channel/deps/* sysroot/lib/rustlib/$TARGET_TRIPLE/lib/ - -if [[ "$1" == "--release" ]]; then - channel='release' - RUSTFLAGS="$RUSTFLAGS -Zmir-opt-level=3" cargo build --target $TARGET_TRIPLE --release --manifest-path ./sysroot_src/src/libtest/Cargo.toml -else - channel='debug' - cargo build --target $TARGET_TRIPLE --manifest-path ./sysroot_src/src/libtest/Cargo.toml -fi - -# Copy files to sysroot -cp -r sysroot_src/src/libtest/target/$TARGET_TRIPLE/$sysroot_channel/deps/* sysroot/lib/rustlib/$TARGET_TRIPLE/lib/ diff --git a/build_sysroot/rustc-std-workspace-alloc/Cargo.toml b/build_sysroot/rustc-std-workspace-alloc/Cargo.toml deleted file mode 100644 index 221365373ff..00000000000 --- a/build_sysroot/rustc-std-workspace-alloc/Cargo.toml +++ /dev/null @@ -1,15 +0,0 @@ -[package] -name = "rustc-std-workspace-alloc" -version = "1.0.0" -authors = ["Alex Crichton <alex@alexcrichton.com>"] -license = 'MIT/Apache-2.0' -description = """ -Hack for the compiler's own build system -""" -edition = "2018" - -[lib] -path = "lib.rs" - -[dependencies] -alloc = { path = "../sysroot_src/src/liballoc" } diff --git a/build_sysroot/rustc-std-workspace-alloc/lib.rs b/build_sysroot/rustc-std-workspace-alloc/lib.rs deleted file mode 100644 index cf216ec9d29..00000000000 --- a/build_sysroot/rustc-std-workspace-alloc/lib.rs +++ /dev/null @@ -1,5 +0,0 @@ -#![feature(no_core)] -#![no_core] -#![deny(rust_2018_idioms)] - -pub use ::alloc::*; |
