From 9491031f9a4c80dbba52888666906491827c4ecb Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Fri, 17 Feb 2023 18:42:14 +0100 Subject: [PATCH] Rustup to rustc 1.69.0-nightly (0416b1a6f 2023-02-14) --- build_sysroot/Cargo.toml | 3 ++- build_system/build_sysroot.rs | 1 + ...owngrade-compiler-builtins-to-0.1.86.patch | 26 +++++++++++++++++++ rust-toolchain | 2 +- 4 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 patches/0029-sysroot-Downgrade-compiler-builtins-to-0.1.86.patch diff --git a/build_sysroot/Cargo.toml b/build_sysroot/Cargo.toml index d0e5fc4a3b9..cde60ce2e05 100644 --- a/build_sysroot/Cargo.toml +++ b/build_sysroot/Cargo.toml @@ -8,7 +8,8 @@ alloc = { path = "./sysroot_src/library/alloc" } std = { path = "./sysroot_src/library/std", features = ["panic_unwind", "backtrace"] } test = { path = "./sysroot_src/library/test" } -compiler_builtins = { version = "0.1.39", default-features = false, features = ["no-asm"] } +# FIXME allow 0.1.87 and later once #1353 is fixed +compiler_builtins = { version = "=0.1.86", default-features = false, features = ["no-asm"] } [patch.crates-io] rustc-std-workspace-core = { path = "./sysroot_src/library/rustc-std-workspace-core" } diff --git a/build_system/build_sysroot.rs b/build_system/build_sysroot.rs index 2e04f2c6811..6a4d6aaa356 100644 --- a/build_system/build_sysroot.rs +++ b/build_system/build_sysroot.rs @@ -247,6 +247,7 @@ fn build_clif_sysroot_for_triple( if channel == "release" { build_cmd.arg("--release"); } + build_cmd.arg("--locked"); build_cmd.env("__CARGO_DEFAULT_LIB_METADATA", "cg_clif"); if compiler.triple.contains("apple") { build_cmd.env("CARGO_PROFILE_RELEASE_SPLIT_DEBUGINFO", "packed"); diff --git a/patches/0029-sysroot-Downgrade-compiler-builtins-to-0.1.86.patch b/patches/0029-sysroot-Downgrade-compiler-builtins-to-0.1.86.patch new file mode 100644 index 00000000000..c5fa6aaec2b --- /dev/null +++ b/patches/0029-sysroot-Downgrade-compiler-builtins-to-0.1.86.patch @@ -0,0 +1,26 @@ +From ff23f6113098987318b674088b924e22750be18c Mon Sep 17 00:00:00 2001 +From: bjorn3 <17426603+bjorn3@users.noreply.github.com> +Date: Fri, 17 Feb 2023 18:37:48 +0100 +Subject: [PATCH] Downgrade compiler-builtins to 0.1.86 + +0.1.87 doesn't work on Windows when using cg_clif +--- + library/std/Cargo.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/library/std/Cargo.toml b/library/std/Cargo.toml +index 349cd91..300f812 100644 +--- a/library/std/Cargo.toml ++++ b/library/std/Cargo.toml +@@ -16,7 +16,7 @@ panic_unwind = { path = "../panic_unwind", optional = true } + panic_abort = { path = "../panic_abort" } + core = { path = "../core" } + libc = { version = "0.2.138", default-features = false, features = ['rustc-dep-of-std'] } +-compiler_builtins = { version = "0.1.87" } ++compiler_builtins = { version = "0.1.86" } + profiler_builtins = { path = "../profiler_builtins", optional = true } + unwind = { path = "../unwind" } + hashbrown = { version = "0.12", default-features = false, features = ['rustc-dep-of-std'] } +-- +2.26.2.7.g19db9cfb68 + diff --git a/rust-toolchain b/rust-toolchain index a1582ee7a46..eae1c2f9298 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1,3 +1,3 @@ [toolchain] -channel = "nightly-2023-02-14" +channel = "nightly-2023-02-15" components = ["rust-src", "rustc-dev", "llvm-tools-preview"]