From 247a8f4b0b03a39efa8a3954d6657d1377a687b5 Mon Sep 17 00:00:00 2001 From: Arjun Ramesh Date: Sat, 13 Jun 2026 13:46:50 -0400 Subject: [PATCH] bootstrap: update cc-rs to `1.2.62` --- src/bootstrap/Cargo.lock | 11 +++++++++-- src/bootstrap/Cargo.toml | 2 +- src/bootstrap/src/core/build_steps/llvm.rs | 1 - src/bootstrap/src/utils/cc_detect.rs | 3 --- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/bootstrap/Cargo.lock b/src/bootstrap/Cargo.lock index 7c890e3f2004c..465f6fa964c5a 100644 --- a/src/bootstrap/Cargo.lock +++ b/src/bootstrap/Cargo.lock @@ -95,10 +95,11 @@ dependencies = [ [[package]] name = "cc" -version = "1.2.28" +version = "1.2.62" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ad45f4f74e4e20eaa392913b7b33a7091c87e59628f4dd27888205ad888843c" +checksum = "a1dce859f0832a7d088c4f1119888ab94ef4b5d6795d1ce05afb7fe159d79f98" dependencies = [ + "find-msvc-tools", "shlex", ] @@ -277,6 +278,12 @@ dependencies = [ "libredox", ] +[[package]] +name = "find-msvc-tools" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" + [[package]] name = "generic-array" version = "0.14.7" diff --git a/src/bootstrap/Cargo.toml b/src/bootstrap/Cargo.toml index f4b89e8a28b0f..4652d334a2a44 100644 --- a/src/bootstrap/Cargo.toml +++ b/src/bootstrap/Cargo.toml @@ -32,7 +32,7 @@ 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.28" +cc = "=1.2.62" cmake = "=0.1.54" build_helper = { path = "../build_helper" } diff --git a/src/bootstrap/src/core/build_steps/llvm.rs b/src/bootstrap/src/core/build_steps/llvm.rs index 087a395a067f0..c5b3d1999b540 100644 --- a/src/bootstrap/src/core/build_steps/llvm.rs +++ b/src/bootstrap/src/core/build_steps/llvm.rs @@ -1733,7 +1733,6 @@ impl Step for Libunwind { cfg.out_dir(&out_dir); if self.target.contains("x86_64-fortanix-unknown-sgx") { - cfg.static_flag(true); cfg.flag("-fno-stack-protector"); cfg.flag("-ffreestanding"); cfg.flag("-fexceptions"); diff --git a/src/bootstrap/src/utils/cc_detect.rs b/src/bootstrap/src/utils/cc_detect.rs index d010226f0dfdb..1e91842875696 100644 --- a/src/bootstrap/src/utils/cc_detect.rs +++ b/src/bootstrap/src/utils/cc_detect.rs @@ -48,9 +48,6 @@ fn new_cc_build(build: &Build, target: TargetSelection) -> cc::Build { if target.is_msvc() { cfg.static_crt(true); } - if target.contains("musl") { - cfg.static_flag(true); - } } } cfg