aports/main/rust/downgrade-cc.patch
fossdd 4cc843c46d main/rust: upgrade to 1.85.0
https://blog.rust-lang.org/2025/02/20/Rust-1.85.0.html

* base.crt_static_default from linux_musl.rs in
  musl-fix-linux_musl_base.patch, was moved to the indivdual targets
  (which we already do in alpine-target.patch)
  9c37c14aa2
* Target JSON (de)serialization was moved from compiler/rustc_target/src/spec/mod.rs
  to compiler/rustc_target/src/spec/json.rs (need-rpath.patch)
  77080d8eb3
2025-03-08 23:47:57 +00:00

45 lines
1.6 KiB
Diff

Patch-Source: https://github.com/rust-lang/rust/pull/137460
---
From e4ca11f87ffca8c63aa56d45b46e62b6acc58bd7 Mon Sep 17 00:00:00 2001
From: onur-ozkan <work@onurozkan.dev>
Date: Sun, 23 Feb 2025 08:23:51 +0300
Subject: [PATCH] downgrade bootstrap `cc`
Signed-off-by: onur-ozkan <work@onurozkan.dev>
---
src/bootstrap/Cargo.lock | 4 ++--
src/bootstrap/Cargo.toml | 4 +++-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/bootstrap/Cargo.lock b/src/bootstrap/Cargo.lock
index a47f3af60cbd5..890e64e2babbc 100644
--- a/src/bootstrap/Cargo.lock
+++ b/src/bootstrap/Cargo.lock
@@ -88,9 +88,9 @@ dependencies = [
[[package]]
name = "cc"
-version = "1.2.0"
+version = "1.1.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1aeb932158bd710538c73702db6945cb68a8fb08c519e6e12706b94263b36db8"
+checksum = "9540e661f81799159abee814118cc139a2004b3a3aa3ea37724a1b66530b90e0"
dependencies = [
"shlex",
]
diff --git a/src/bootstrap/Cargo.toml b/src/bootstrap/Cargo.toml
index ed51862390d40..2c1d85b01e6af 100644
--- a/src/bootstrap/Cargo.toml
+++ b/src/bootstrap/Cargo.toml
@@ -37,7 +37,9 @@ test = false
# Most of the time updating these dependencies requires modifications to the
# bootstrap codebase(e.g., https://github.com/rust-lang/rust/issues/124565);
# otherwise, some targets will fail. That's why these dependencies are explicitly pinned.
-cc = "=1.2.0"
+#
+# Do not upgrade this crate unless https://github.com/rust-lang/cc-rs/issues/1317 is fixed.
+cc = "=1.1.22"
cmake = "=0.1.48"
build_helper = { path = "../build_helper" }