Compare commits
17 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a9b80468ca | ||
|
|
65fd388eb7 | ||
|
|
36c15e96ee | ||
|
|
d443ef9fa3 | ||
|
|
904f412226 | ||
|
|
ef3ce219ca | ||
|
|
dfeceeebed | ||
|
|
5337f42bfe | ||
|
|
6c973e7ddf | ||
|
|
5a638152c0 | ||
|
|
b26ae543d9 | ||
|
|
594464056b | ||
|
|
17cb547e45 | ||
|
|
9786ba6ea9 | ||
|
|
b127903104 | ||
|
|
e569cda848 | ||
|
|
c9224a07d6 |
13 changed files with 298 additions and 198 deletions
8
.gitignore
vendored
8
.gitignore
vendored
|
|
@ -452,3 +452,11 @@
|
|||
/rustc-1.85.1-src.tar.xz
|
||||
/rustc-1.86.0-src.tar.xz
|
||||
/wasi-libc-640c0cfc19a96b099e0791824be5ef0105ce2084.tar.gz
|
||||
/rustc-1.87.0-src.tar.xz
|
||||
/rustc-1.88.0-src.tar.xz
|
||||
/wasi-libc-wasi-sdk-27.tar.gz
|
||||
/rustc-1.89.0-src.tar.xz
|
||||
/rustc-1.90.0-src.tar.xz
|
||||
/rustc-1.91.0-src.tar.xz
|
||||
/rustc-1.91.1-src.tar.xz
|
||||
/rustc-1.92.0-src.tar.xz
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From 5273432acfae75d6e509bbebcf8d28b0f3d820d0 Mon Sep 17 00:00:00 2001
|
||||
From e54c0a4cc8bd8a76b155714b23a61d1d32a8d069 Mon Sep 17 00:00:00 2001
|
||||
From: Josh Stone <jistone@redhat.com>
|
||||
Date: Fri, 9 Jun 2023 15:23:08 -0700
|
||||
Subject: [PATCH] Let environment variables override some default CPUs
|
||||
|
|
@ -10,10 +10,10 @@ Subject: [PATCH] Let environment variables override some default CPUs
|
|||
3 files changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/compiler/rustc_target/src/spec/targets/powerpc64le_unknown_linux_gnu.rs b/compiler/rustc_target/src/spec/targets/powerpc64le_unknown_linux_gnu.rs
|
||||
index 23913687a1fd..3253fbc84c74 100644
|
||||
index 9e406af53b5..9104903673f 100644
|
||||
--- a/compiler/rustc_target/src/spec/targets/powerpc64le_unknown_linux_gnu.rs
|
||||
+++ b/compiler/rustc_target/src/spec/targets/powerpc64le_unknown_linux_gnu.rs
|
||||
@@ -2,7 +2,7 @@
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
pub(crate) fn target() -> Target {
|
||||
let mut base = base::linux_gnu::opts();
|
||||
|
|
@ -23,23 +23,23 @@ index 23913687a1fd..3253fbc84c74 100644
|
|||
base.max_atomic_width = Some(64);
|
||||
base.stack_probes = StackProbeType::Inline;
|
||||
diff --git a/compiler/rustc_target/src/spec/targets/s390x_unknown_linux_gnu.rs b/compiler/rustc_target/src/spec/targets/s390x_unknown_linux_gnu.rs
|
||||
index a84a18a433ff..441af1018ff3 100644
|
||||
index cdcf7d62a3e..02f24274ed2 100644
|
||||
--- a/compiler/rustc_target/src/spec/targets/s390x_unknown_linux_gnu.rs
|
||||
+++ b/compiler/rustc_target/src/spec/targets/s390x_unknown_linux_gnu.rs
|
||||
@@ -5,7 +5,7 @@ pub(crate) fn target() -> Target {
|
||||
@@ -6,7 +6,7 @@ pub(crate) fn target() -> Target {
|
||||
let mut base = base::linux_gnu::opts();
|
||||
base.endian = Endian::Big;
|
||||
// z10 is the oldest CPU supported by LLVM
|
||||
- base.cpu = "z10".into();
|
||||
+ base.cpu = option_env!("RUSTC_TARGET_CPU_S390X").unwrap_or("z10").into();
|
||||
base.max_atomic_width = Some(128);
|
||||
base.min_global_align = Some(16);
|
||||
base.min_global_align = Some(Align::from_bits(16).unwrap());
|
||||
base.stack_probes = StackProbeType::Inline;
|
||||
diff --git a/compiler/rustc_target/src/spec/targets/x86_64_unknown_linux_gnu.rs b/compiler/rustc_target/src/spec/targets/x86_64_unknown_linux_gnu.rs
|
||||
index 59ec6c7f9d5f..b6f1be890b20 100644
|
||||
index 0c8353fad18..c2515e700bb 100644
|
||||
--- a/compiler/rustc_target/src/spec/targets/x86_64_unknown_linux_gnu.rs
|
||||
+++ b/compiler/rustc_target/src/spec/targets/x86_64_unknown_linux_gnu.rs
|
||||
@@ -2,7 +2,7 @@
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
pub(crate) fn target() -> Target {
|
||||
let mut base = base::linux_gnu::opts();
|
||||
|
|
@ -49,5 +49,5 @@ index 59ec6c7f9d5f..b6f1be890b20 100644
|
|||
base.max_atomic_width = Some(64);
|
||||
base.add_pre_link_args(LinkerFlavor::Gnu(Cc::Yes, Lld::No), &["-m64"]);
|
||||
--
|
||||
2.47.1
|
||||
2.49.0
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From 687112c89c9058ef1e79f1c3a974940b1ae43ea3 Mon Sep 17 00:00:00 2001
|
||||
From e9405caf32dfb31bf17c3da0299df515a3755107 Mon Sep 17 00:00:00 2001
|
||||
From: Josh Stone <jistone@redhat.com>
|
||||
Date: Fri, 16 Aug 2024 10:12:58 -0700
|
||||
Subject: [PATCH] Use lld provided by system
|
||||
|
|
@ -12,12 +12,12 @@ Subject: [PATCH] Use lld provided by system
|
|||
5 files changed, 5 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/compiler/rustc_target/src/spec/base/wasm.rs b/compiler/rustc_target/src/spec/base/wasm.rs
|
||||
index 81b96cd39ffa..4c9916af826b 100644
|
||||
index 7ede45766ea..b22362227bb 100644
|
||||
--- a/compiler/rustc_target/src/spec/base/wasm.rs
|
||||
+++ b/compiler/rustc_target/src/spec/base/wasm.rs
|
||||
@@ -85,8 +85,7 @@ macro_rules! args {
|
||||
// arguments just yet
|
||||
limit_rdylib_exports: false,
|
||||
@@ -81,8 +81,7 @@ macro_rules! args {
|
||||
// threaded model which will legalize atomics to normal operations.
|
||||
singlethread: true,
|
||||
|
||||
- // we use the LLD shipped with the Rust toolchain by default
|
||||
- linker: Some("rust-lld".into()),
|
||||
|
|
@ -26,7 +26,7 @@ index 81b96cd39ffa..4c9916af826b 100644
|
|||
|
||||
pre_link_args,
|
||||
diff --git a/compiler/rustc_target/src/spec/targets/aarch64_unknown_none_softfloat.rs b/compiler/rustc_target/src/spec/targets/aarch64_unknown_none_softfloat.rs
|
||||
index 3b719ebaf07e..8b4fecee68f0 100644
|
||||
index 35a4dd72b86..a9c8fc5edb8 100644
|
||||
--- a/compiler/rustc_target/src/spec/targets/aarch64_unknown_none_softfloat.rs
|
||||
+++ b/compiler/rustc_target/src/spec/targets/aarch64_unknown_none_softfloat.rs
|
||||
@@ -15,7 +15,7 @@ pub(crate) fn target() -> Target {
|
||||
|
|
@ -39,7 +39,7 @@ index 3b719ebaf07e..8b4fecee68f0 100644
|
|||
relocation_model: RelocModel::Static,
|
||||
disable_redzone: true,
|
||||
diff --git a/compiler/rustc_target/src/spec/targets/aarch64_unknown_uefi.rs b/compiler/rustc_target/src/spec/targets/aarch64_unknown_uefi.rs
|
||||
index 9656024ddaa1..2099fa17229f 100644
|
||||
index 327b52389b9..17313d7e8b3 100644
|
||||
--- a/compiler/rustc_target/src/spec/targets/aarch64_unknown_uefi.rs
|
||||
+++ b/compiler/rustc_target/src/spec/targets/aarch64_unknown_uefi.rs
|
||||
@@ -9,6 +9,7 @@ pub(crate) fn target() -> Target {
|
||||
|
|
@ -51,7 +51,7 @@ index 9656024ddaa1..2099fa17229f 100644
|
|||
Target {
|
||||
llvm_target: "aarch64-unknown-windows".into(),
|
||||
diff --git a/compiler/rustc_target/src/spec/targets/x86_64_unknown_none.rs b/compiler/rustc_target/src/spec/targets/x86_64_unknown_none.rs
|
||||
index e14a36735894..b493d7d98b46 100644
|
||||
index 1a6343595f5..8015b082cd1 100644
|
||||
--- a/compiler/rustc_target/src/spec/targets/x86_64_unknown_none.rs
|
||||
+++ b/compiler/rustc_target/src/spec/targets/x86_64_unknown_none.rs
|
||||
@@ -19,7 +19,7 @@ pub(crate) fn target() -> Target {
|
||||
|
|
@ -64,17 +64,17 @@ index e14a36735894..b493d7d98b46 100644
|
|||
features: "-mmx,-sse,-sse2,-sse3,-ssse3,-sse4.1,-sse4.2,-avx,-avx2,+soft-float".into(),
|
||||
supported_sanitizers: SanitizerSet::KCFI | SanitizerSet::KERNELADDRESS,
|
||||
diff --git a/compiler/rustc_target/src/spec/targets/x86_64_unknown_uefi.rs b/compiler/rustc_target/src/spec/targets/x86_64_unknown_uefi.rs
|
||||
index bce6aa0ebc6b..7fa1148a1de7 100644
|
||||
index 0cf6a879462..3677fc662de 100644
|
||||
--- a/compiler/rustc_target/src/spec/targets/x86_64_unknown_uefi.rs
|
||||
+++ b/compiler/rustc_target/src/spec/targets/x86_64_unknown_uefi.rs
|
||||
@@ -14,6 +14,7 @@ pub(crate) fn target() -> Target {
|
||||
@@ -15,6 +15,7 @@ pub(crate) fn target() -> Target {
|
||||
base.plt_by_default = false;
|
||||
base.max_atomic_width = Some(64);
|
||||
base.entry_abi = Conv::X86_64Win64;
|
||||
base.entry_abi = CanonAbi::X86(X86Call::Win64);
|
||||
+ base.linker = Some("lld".into());
|
||||
|
||||
// We disable MMX and SSE for now, even though UEFI allows using them. Problem is, you have to
|
||||
// enable these CPU features explicitly before their first use, otherwise their instructions
|
||||
--
|
||||
2.48.1
|
||||
2.51.0
|
||||
|
||||
|
|
|
|||
|
|
@ -1,36 +1,34 @@
|
|||
From c3307f4e1826cabd8e7e4a54636b0e79afb97835 Mon Sep 17 00:00:00 2001
|
||||
From 8364de4cb8edab85efcb895824ce06f4a95bd26f Mon Sep 17 00:00:00 2001
|
||||
From: Josh Stone <jistone@redhat.com>
|
||||
Date: Thu, 28 Sep 2023 18:14:28 -0700
|
||||
Subject: [PATCH 1/2] bootstrap: allow disabling target self-contained
|
||||
Date: Mon, 18 Aug 2025 17:11:07 -0700
|
||||
Subject: [PATCH] bootstrap: allow disabling target self-contained
|
||||
|
||||
---
|
||||
config.example.toml | 5 +++++
|
||||
bootstrap.example.toml | 5 +++++
|
||||
src/bootstrap/src/core/build_steps/compile.rs | 4 ++++
|
||||
src/bootstrap/src/core/config/config.rs | 8 ++++++++
|
||||
src/bootstrap/src/core/config/config.rs | 4 ++++
|
||||
src/bootstrap/src/core/config/toml/target.rs | 5 +++++
|
||||
src/bootstrap/src/lib.rs | 5 +++++
|
||||
4 files changed, 22 insertions(+)
|
||||
5 files changed, 23 insertions(+)
|
||||
|
||||
diff --git a/config.example.toml b/config.example.toml
|
||||
index f5395375afe4..a96368ae4ef2 100644
|
||||
--- a/config.example.toml
|
||||
+++ b/config.example.toml
|
||||
@@ -927,6 +927,11 @@
|
||||
# order to run `x check`.
|
||||
#optimized-compiler-builtins = build.optimized-compiler-builtins (bool)
|
||||
|
||||
diff --git a/bootstrap.example.toml b/bootstrap.example.toml
|
||||
index 6f37e51a47d..ee21bc06bea 100644
|
||||
--- a/bootstrap.example.toml
|
||||
+++ b/bootstrap.example.toml
|
||||
@@ -1077,3 +1077,8 @@
|
||||
# pass `off`:
|
||||
# - x86_64-unknown-linux-gnu
|
||||
#default-linker-linux-override = "off" (for most targets)
|
||||
+
|
||||
+# Copy libc and CRT objects into the target lib/self-contained/ directory.
|
||||
+# Enabled by default on `musl`, `wasi`, and `windows-gnu` targets. Other
|
||||
+# targets may ignore this setting if they have nothing to be contained.
|
||||
+#self-contained = <platform-specific> (bool)
|
||||
+
|
||||
# =============================================================================
|
||||
# Distribution options
|
||||
#
|
||||
diff --git a/src/bootstrap/src/core/build_steps/compile.rs b/src/bootstrap/src/core/build_steps/compile.rs
|
||||
index 479327d63695..97d2bf2df8bb 100644
|
||||
index 6857a40ada8..9a98323a704 100644
|
||||
--- a/src/bootstrap/src/core/build_steps/compile.rs
|
||||
+++ b/src/bootstrap/src/core/build_steps/compile.rs
|
||||
@@ -327,6 +327,10 @@ fn copy_self_contained_objects(
|
||||
@@ -368,6 +368,10 @@ fn copy_self_contained_objects(
|
||||
compiler: &Compiler,
|
||||
target: TargetSelection,
|
||||
) -> Vec<(PathBuf, DependencyType)> {
|
||||
|
|
@ -42,18 +40,48 @@ index 479327d63695..97d2bf2df8bb 100644
|
|||
builder.sysroot_target_libdir(*compiler, target).join("self-contained");
|
||||
t!(fs::create_dir_all(&libdir_self_contained));
|
||||
diff --git a/src/bootstrap/src/core/config/config.rs b/src/bootstrap/src/core/config/config.rs
|
||||
index 65f286a05bd5..dc4d6f741bcf 100644
|
||||
index 4b7ae6df360..6bab269a33c 100644
|
||||
--- a/src/bootstrap/src/core/config/config.rs
|
||||
+++ b/src/bootstrap/src/core/config/config.rs
|
||||
@@ -643,6 +643,7 @@ pub struct Target {
|
||||
pub no_std: bool,
|
||||
pub codegen_backends: Option<Vec<String>>,
|
||||
pub optimized_compiler_builtins: Option<bool>,
|
||||
@@ -864,6 +864,7 @@ pub(crate) fn parse_inner(
|
||||
runner: target_runner,
|
||||
optimized_compiler_builtins: target_optimized_compiler_builtins,
|
||||
jemalloc: target_jemalloc,
|
||||
+ self_contained: target_self_contained
|
||||
} = cfg;
|
||||
|
||||
let mut target = Target::from_triple(&triple);
|
||||
@@ -921,6 +922,9 @@ pub(crate) fn parse_inner(
|
||||
if let Some(s) = target_no_std {
|
||||
target.no_std = s;
|
||||
}
|
||||
+ if let Some(s) = target_self_contained {
|
||||
+ target.self_contained = s;
|
||||
+ }
|
||||
target.cc = target_cc.map(PathBuf::from);
|
||||
target.cxx = target_cxx.map(PathBuf::from);
|
||||
target.ar = target_ar.map(PathBuf::from);
|
||||
diff --git a/src/bootstrap/src/core/config/toml/target.rs b/src/bootstrap/src/core/config/toml/target.rs
|
||||
index 4c7afa50b96..83b8a1b50ca 100644
|
||||
--- a/src/bootstrap/src/core/config/toml/target.rs
|
||||
+++ b/src/bootstrap/src/core/config/toml/target.rs
|
||||
@@ -47,6 +47,7 @@ struct TomlTarget {
|
||||
runner: Option<String> = "runner",
|
||||
optimized_compiler_builtins: Option<CompilerBuiltins> = "optimized-compiler-builtins",
|
||||
jemalloc: Option<bool> = "jemalloc",
|
||||
+ self_contained: Option<bool> = "self-contained",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,6 +81,7 @@ pub struct Target {
|
||||
pub codegen_backends: Option<Vec<CodegenBackendKind>>,
|
||||
pub optimized_compiler_builtins: Option<CompilerBuiltins>,
|
||||
pub jemalloc: Option<bool>,
|
||||
+ pub self_contained: bool,
|
||||
}
|
||||
|
||||
impl Target {
|
||||
@@ -654,6 +655,9 @@ pub fn from_triple(triple: &str) -> Self {
|
||||
@@ -91,6 +93,9 @@ pub fn from_triple(triple: &str) -> Self {
|
||||
if triple.contains("emscripten") {
|
||||
target.runner = Some("node".into());
|
||||
}
|
||||
|
|
@ -63,29 +91,11 @@ index 65f286a05bd5..dc4d6f741bcf 100644
|
|||
target
|
||||
}
|
||||
}
|
||||
@@ -1234,6 +1238,7 @@ struct TomlTarget {
|
||||
codegen_backends: Option<Vec<String>> = "codegen-backends",
|
||||
runner: Option<String> = "runner",
|
||||
optimized_compiler_builtins: Option<bool> = "optimized-compiler-builtins",
|
||||
+ self_contained: Option<bool> = "self-contained",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2146,6 +2151,9 @@ fn get_table(option: &str) -> Result<TomlConfig, toml::de::Error> {
|
||||
if let Some(s) = cfg.no_std {
|
||||
target.no_std = s;
|
||||
}
|
||||
+ if let Some(s) = cfg.self_contained {
|
||||
+ target.self_contained = s;
|
||||
+ }
|
||||
target.cc = cfg.cc.map(PathBuf::from);
|
||||
target.cxx = cfg.cxx.map(PathBuf::from);
|
||||
target.ar = cfg.ar.map(PathBuf::from);
|
||||
diff --git a/src/bootstrap/src/lib.rs b/src/bootstrap/src/lib.rs
|
||||
index 21b02a3b541a..6b98c67457e8 100644
|
||||
index dd30f05b728..cc89a84071e 100644
|
||||
--- a/src/bootstrap/src/lib.rs
|
||||
+++ b/src/bootstrap/src/lib.rs
|
||||
@@ -1366,6 +1366,11 @@ fn no_std(&self, target: TargetSelection) -> Option<bool> {
|
||||
@@ -1441,6 +1441,11 @@ fn no_std(&self, target: TargetSelection) -> Option<bool> {
|
||||
self.config.target_config.get(&target).map(|t| t.no_std)
|
||||
}
|
||||
|
||||
|
|
@ -98,5 +108,5 @@ index 21b02a3b541a..6b98c67457e8 100644
|
|||
/// and `remote-test-server` binaries.
|
||||
fn remote_tested(&self, target: TargetSelection) -> bool {
|
||||
--
|
||||
2.48.1
|
||||
2.51.0
|
||||
|
||||
|
|
|
|||
28
0001-only-copy-rustlib-into-stage0-sysroot.patch
Normal file
28
0001-only-copy-rustlib-into-stage0-sysroot.patch
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
From 7d83bae4e2577ffa2afaf2fddb6948c1756a403c Mon Sep 17 00:00:00 2001
|
||||
From: Paul Murphy <paumurph@redhat.com>
|
||||
Date: Thu, 10 Jul 2025 09:06:22 -0500
|
||||
Subject: [PATCH] only copy rustlib into stage0 sysroot
|
||||
|
||||
Otherwise, much more is copied, and doing so likely runs into
|
||||
permissions errors if the bootstrap toolchain lives in the host's
|
||||
sysroot.
|
||||
---
|
||||
src/bootstrap/src/core/build_steps/compile.rs | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/bootstrap/src/core/build_steps/compile.rs b/src/bootstrap/src/core/build_steps/compile.rs
|
||||
index 4d0ae54e1ef..4ef70dd9b97 100644
|
||||
--- a/src/bootstrap/src/core/build_steps/compile.rs
|
||||
+++ b/src/bootstrap/src/core/build_steps/compile.rs
|
||||
@@ -811,7 +811,7 @@ fn run(self, builder: &Builder<'_>) {
|
||||
let _ = fs::remove_dir_all(sysroot.join("lib/rustlib/src/rust"));
|
||||
}
|
||||
|
||||
- builder.cp_link_r(&builder.initial_sysroot.join("lib"), &sysroot.join("lib"));
|
||||
+ builder.cp_link_r(&builder.initial_sysroot.join("lib/rustlib"), &sysroot.join("lib/rustlib"));
|
||||
} else {
|
||||
if builder.download_rustc() {
|
||||
// Ensure there are no CI-rustc std artifacts.
|
||||
--
|
||||
2.49.0
|
||||
|
||||
|
|
@ -1,20 +1,20 @@
|
|||
From 9551ffded09131ac225261ab55a7b3c9d09ad3bb Mon Sep 17 00:00:00 2001
|
||||
From 862d09fe2e8b0f5ce8fe7bfc592cda66a1d74c08 Mon Sep 17 00:00:00 2001
|
||||
From: Josh Stone <jistone@redhat.com>
|
||||
Date: Thu, 28 Sep 2023 18:18:16 -0700
|
||||
Date: Mon, 18 Aug 2025 17:13:28 -0700
|
||||
Subject: [PATCH 2/2] set an external library path for wasm32-wasi
|
||||
|
||||
---
|
||||
compiler/rustc_codegen_ssa/src/back/link.rs | 10 ++++++++++
|
||||
compiler/rustc_target/src/spec/json.rs | 2 ++
|
||||
compiler/rustc_target/src/spec/json.rs | 4 ++++
|
||||
compiler/rustc_target/src/spec/mod.rs | 2 ++
|
||||
.../rustc_target/src/spec/targets/wasm32_wasip1.rs | 7 ++++---
|
||||
4 files changed, 18 insertions(+), 3 deletions(-)
|
||||
4 files changed, 20 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/compiler/rustc_codegen_ssa/src/back/link.rs b/compiler/rustc_codegen_ssa/src/back/link.rs
|
||||
index 105a4cb81f0d..21bd626842c7 100644
|
||||
index 48b01ea2df19..59b87396fed2 100644
|
||||
--- a/compiler/rustc_codegen_ssa/src/back/link.rs
|
||||
+++ b/compiler/rustc_codegen_ssa/src/back/link.rs
|
||||
@@ -1686,6 +1686,12 @@ fn get_object_file_path(sess: &Session, name: &str, self_contained: bool) -> Pat
|
||||
@@ -1559,6 +1559,12 @@ fn get_object_file_path(sess: &Session, name: &str, self_contained: bool) -> Pat
|
||||
return file_path;
|
||||
}
|
||||
}
|
||||
|
|
@ -27,10 +27,10 @@ index 105a4cb81f0d..21bd626842c7 100644
|
|||
for search_path in sess.target_filesearch().search_paths(PathKind::Native) {
|
||||
let file_path = search_path.dir.join(name);
|
||||
if file_path.exists() {
|
||||
@@ -2186,6 +2192,10 @@ fn add_library_search_dirs(
|
||||
ControlFlow::<()>::Continue(())
|
||||
},
|
||||
);
|
||||
@@ -2140,6 +2146,10 @@ fn add_library_search_dirs(
|
||||
}
|
||||
ControlFlow::<()>::Continue(())
|
||||
});
|
||||
+
|
||||
+ if let Some(lib_path) = &sess.target.options.external_lib_path {
|
||||
+ cmd.include_path(Path::new(lib_path.as_ref()));
|
||||
|
|
@ -39,18 +39,18 @@ index 105a4cb81f0d..21bd626842c7 100644
|
|||
|
||||
/// Add options making relocation sections in the produced ELF files read-only
|
||||
diff --git a/compiler/rustc_target/src/spec/json.rs b/compiler/rustc_target/src/spec/json.rs
|
||||
index f703132e51f0..c4821be7d12e 100644
|
||||
index f236be92b3b6..eea6e0c203d2 100644
|
||||
--- a/compiler/rustc_target/src/spec/json.rs
|
||||
+++ b/compiler/rustc_target/src/spec/json.rs
|
||||
@@ -540,6 +540,7 @@ macro_rules! key {
|
||||
key!(linker_is_gnu_json = "linker-is-gnu", bool);
|
||||
key!(pre_link_objects = "pre-link-objects", link_objects);
|
||||
key!(post_link_objects = "post-link-objects", link_objects);
|
||||
+ key!(external_lib_path, optional);
|
||||
key!(pre_link_objects_self_contained = "pre-link-objects-fallback", link_objects);
|
||||
key!(post_link_objects_self_contained = "post-link-objects-fallback", link_objects);
|
||||
// Deserializes the backwards-compatible variants of `-Clink-self-contained`
|
||||
@@ -723,6 +724,7 @@ macro_rules! target_option_val {
|
||||
@@ -81,6 +81,7 @@ macro_rules! forward_opt {
|
||||
forward!(linker_is_gnu_json);
|
||||
forward!(pre_link_objects);
|
||||
forward!(post_link_objects);
|
||||
+ forward_opt!(external_lib_path);
|
||||
forward!(pre_link_objects_self_contained);
|
||||
forward!(post_link_objects_self_contained);
|
||||
|
||||
@@ -301,6 +302,7 @@ macro_rules! target_option_val {
|
||||
target_option_val!(linker_is_gnu_json, "linker-is-gnu");
|
||||
target_option_val!(pre_link_objects);
|
||||
target_option_val!(post_link_objects);
|
||||
|
|
@ -58,11 +58,20 @@ index f703132e51f0..c4821be7d12e 100644
|
|||
target_option_val!(pre_link_objects_self_contained, "pre-link-objects-fallback");
|
||||
target_option_val!(post_link_objects_self_contained, "post-link-objects-fallback");
|
||||
target_option_val!(link_args - pre_link_args_json, "pre-link-args");
|
||||
@@ -511,6 +513,8 @@ struct TargetSpecJson {
|
||||
pre_link_objects: Option<CrtObjects>,
|
||||
#[serde(rename = "post-link-objects")]
|
||||
post_link_objects: Option<CrtObjects>,
|
||||
+ #[serde(rename = "external-lib-path")]
|
||||
+ external_lib_path: Option<StaticCow<str>>,
|
||||
#[serde(rename = "pre-link-objects-fallback")]
|
||||
pre_link_objects_self_contained: Option<CrtObjects>,
|
||||
#[serde(rename = "post-link-objects-fallback")]
|
||||
diff --git a/compiler/rustc_target/src/spec/mod.rs b/compiler/rustc_target/src/spec/mod.rs
|
||||
index 794d6457cb78..b2d88a14bb57 100644
|
||||
index 07fb1ce63f7c..c076c2836f84 100644
|
||||
--- a/compiler/rustc_target/src/spec/mod.rs
|
||||
+++ b/compiler/rustc_target/src/spec/mod.rs
|
||||
@@ -2237,6 +2237,7 @@ pub struct TargetOptions {
|
||||
@@ -1992,6 +1992,7 @@ pub struct TargetOptions {
|
||||
/// Objects to link before and after all other object code.
|
||||
pub pre_link_objects: CrtObjects,
|
||||
pub post_link_objects: CrtObjects,
|
||||
|
|
@ -70,7 +79,7 @@ index 794d6457cb78..b2d88a14bb57 100644
|
|||
/// Same as `(pre|post)_link_objects`, but when self-contained linking mode is enabled.
|
||||
pub pre_link_objects_self_contained: CrtObjects,
|
||||
pub post_link_objects_self_contained: CrtObjects,
|
||||
@@ -2754,6 +2755,7 @@ fn default() -> TargetOptions {
|
||||
@@ -2518,6 +2519,7 @@ fn default() -> TargetOptions {
|
||||
relro_level: RelroLevel::None,
|
||||
pre_link_objects: Default::default(),
|
||||
post_link_objects: Default::default(),
|
||||
|
|
@ -79,10 +88,10 @@ index 794d6457cb78..b2d88a14bb57 100644
|
|||
post_link_objects_self_contained: Default::default(),
|
||||
link_self_contained: LinkSelfContainedDefault::False,
|
||||
diff --git a/compiler/rustc_target/src/spec/targets/wasm32_wasip1.rs b/compiler/rustc_target/src/spec/targets/wasm32_wasip1.rs
|
||||
index 0862958d05da..b1e736d68627 100644
|
||||
index 26add451ed25..3eaf050e6823 100644
|
||||
--- a/compiler/rustc_target/src/spec/targets/wasm32_wasip1.rs
|
||||
+++ b/compiler/rustc_target/src/spec/targets/wasm32_wasip1.rs
|
||||
@@ -19,11 +19,12 @@ pub(crate) fn target() -> Target {
|
||||
@@ -21,11 +21,12 @@ pub(crate) fn target() -> Target {
|
||||
options.env = "p1".into();
|
||||
options.add_pre_link_args(LinkerFlavor::WasmLld(Cc::Yes), &["--target=wasm32-wasip1"]);
|
||||
|
||||
|
|
@ -99,5 +108,5 @@ index 0862958d05da..b1e736d68627 100644
|
|||
// Right now this is a bit of a workaround but we're currently saying that
|
||||
// the target by default has a static crt which we're taking as a signal
|
||||
--
|
||||
2.48.1
|
||||
2.51.0
|
||||
|
||||
|
|
|
|||
|
|
@ -12,12 +12,14 @@ unicode:
|
|||
# they are tests for those.
|
||||
- rustc-*-src/tests/ui/lint/issue-90614-accept-allow-text-direction-codepoint-in-comment-lint.rs
|
||||
- rustc-*-src/tests/ui/parser/unicode-control-codepoints.rs
|
||||
- rustc-*-src/tests/ui/parser/macro/unicode-control-codepoints-macros.rs
|
||||
- rustc-*-src/tests/ui/parser/macro/auxiliary/unicode-control.rs
|
||||
- rustc-*-src/compiler/rustc_lint/src/hidden_unicode_codepoints.rs
|
||||
- rustc-*-src/compiler/rustc_lint_defs/src/builtin.rs
|
||||
- rustc-*-src/vendor/idna/tests/IdnaTestV2.txt
|
||||
- rustc-*-src/vendor/idna-*/tests/IdnaTestV2.txt
|
||||
- rustc-*-src/vendor/mdbook*/tests/dummy_book/src/first/unicode.md
|
||||
- rustc-*-src/vendor/mdbook*/tests/searchindex_fixture.json
|
||||
- rustc-*-src/vendor/mdbook*/tests/testsuite/search/reasonable_search_index/expected_index.js
|
||||
- rustc-*-src/vendor/mdbook*/tests/testsuite/search/reasonable_search_index/src/first/unicode.md
|
||||
- rustc-*-src/vendor/wast-*/tests/parse-fail/confusing-string?.wat
|
||||
- rustc-*-src/vendor/wast-*/tests/parse-fail/confusing-block-comment?.wat
|
||||
- rustc-*-src/vendor/wast-*/tests/parse-fail/confusing-line-comment?.wat
|
||||
|
|
|
|||
109
rust.spec
109
rust.spec
|
|
@ -1,5 +1,5 @@
|
|||
Name: rust
|
||||
Version: 1.86.0
|
||||
Version: 1.92.0
|
||||
Release: %autorelease
|
||||
Summary: The Rust Programming Language
|
||||
License: (Apache-2.0 OR MIT) AND (Artistic-2.0 AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0 AND Unicode-3.0)
|
||||
|
|
@ -11,12 +11,12 @@ URL: https://www.rust-lang.org
|
|||
%global rust_arches x86_64 i686 armv7hl aarch64 ppc64le s390x riscv64
|
||||
ExclusiveArch: %{rust_arches}
|
||||
|
||||
# To bootstrap from scratch, set the channel and date from src/stage0.json
|
||||
# e.g. 1.59.0 wants rustc: 1.58.0-2022-01-13
|
||||
# To bootstrap from scratch, set the channel and date from src/stage0
|
||||
# e.g. 1.89.0 wants rustc: 1.88.0-2025-06-26
|
||||
# or nightly wants some beta-YYYY-MM-DD
|
||||
%global bootstrap_version 1.85.0
|
||||
%global bootstrap_channel 1.85.0
|
||||
%global bootstrap_date 2025-02-20
|
||||
%global bootstrap_version 1.91.0
|
||||
%global bootstrap_channel 1.91.0
|
||||
%global bootstrap_date 2025-10-30
|
||||
|
||||
# Only the specified arches will use bootstrap binaries.
|
||||
# NOTE: Those binaries used to be uploaded with every new release, but that was
|
||||
|
|
@ -28,8 +28,7 @@ ExclusiveArch: %{rust_arches}
|
|||
# We need CRT files for *-wasi targets, at least as new as the commit in
|
||||
# src/ci/docker/host-x86_64/dist-various-2/build-wasi-toolchain.sh
|
||||
%global wasi_libc_url https://github.com/WebAssembly/wasi-libc
|
||||
#global wasi_libc_ref wasi-sdk-25
|
||||
%global wasi_libc_ref 640c0cfc19a96b099e0791824be5ef0105ce2084
|
||||
%global wasi_libc_ref wasi-sdk-27
|
||||
%global wasi_libc_name wasi-libc-%{wasi_libc_ref}
|
||||
%global wasi_libc_source %{wasi_libc_url}/archive/%{wasi_libc_ref}/%{wasi_libc_name}.tar.gz
|
||||
%global wasi_libc_dir %{_builddir}/%{wasi_libc_name}
|
||||
|
|
@ -43,9 +42,10 @@ ExclusiveArch: %{rust_arches}
|
|||
%bcond_with llvm_static
|
||||
|
||||
# We can also choose to just use Rust's bundled LLVM, in case the system LLVM
|
||||
# is insufficient. Rust currently requires LLVM 18.0+.
|
||||
%global min_llvm_version 18.0.0
|
||||
%global bundled_llvm_version 19.1.7
|
||||
# is insufficient. Rust currently requires LLVM 19.0+.
|
||||
# See src/bootstrap/src/core/build_steps/llvm.rs, fn check_llvm_version
|
||||
%global min_llvm_version 20.0.0
|
||||
%global bundled_llvm_version 21.1.3
|
||||
#global llvm_compat_version 19
|
||||
%global llvm llvm%{?llvm_compat_version}
|
||||
%bcond_with bundled_llvm
|
||||
|
|
@ -54,7 +54,7 @@ ExclusiveArch: %{rust_arches}
|
|||
# This needs to be consistent with the bindings in vendor/libgit2-sys.
|
||||
%global min_libgit2_version 1.9.0
|
||||
%global next_libgit2_version 1.10.0~
|
||||
%global bundled_libgit2_version 1.9.0
|
||||
%global bundled_libgit2_version 1.9.1
|
||||
%if 0%{?fedora} >= 41
|
||||
%bcond_with bundled_libgit2
|
||||
%else
|
||||
|
|
@ -62,7 +62,7 @@ ExclusiveArch: %{rust_arches}
|
|||
%endif
|
||||
|
||||
# Try to use system oniguruma (only used at build time for rust-docs)
|
||||
# src/tools/rustbook -> ... -> onig_sys v69.8.1 needs at least 6.9.3
|
||||
# src/tools/rustbook -> ... -> onig_sys v69.9.1 needs at least 6.9.3
|
||||
%global min_oniguruma_version 6.9.3
|
||||
%if 0%{?rhel} && 0%{?rhel} < 9
|
||||
%bcond_without bundled_oniguruma
|
||||
|
|
@ -72,7 +72,7 @@ ExclusiveArch: %{rust_arches}
|
|||
|
||||
# Cargo uses UPSERTs with omitted conflict targets
|
||||
%global min_sqlite3_version 3.35
|
||||
%global bundled_sqlite3_version 3.48.0
|
||||
%global bundled_sqlite3_version 3.50.2
|
||||
%if 0%{?rhel} && 0%{?rhel} < 10
|
||||
%bcond_without bundled_sqlite3
|
||||
%else
|
||||
|
|
@ -138,7 +138,10 @@ Patch4: 0001-bootstrap-allow-disabling-target-self-contained.patch
|
|||
Patch5: 0002-set-an-external-library-path-for-wasm32-wasi.patch
|
||||
|
||||
# We don't want to use the bundled library in libsqlite3-sys
|
||||
Patch6: rustc-1.86.0-unbundle-sqlite.patch
|
||||
Patch6: rustc-1.92.0-unbundle-sqlite.patch
|
||||
|
||||
# stage0 tries to copy all of /usr/lib, sometimes unsuccessfully, see #143735
|
||||
Patch7: 0001-only-copy-rustlib-into-stage0-sysroot.patch
|
||||
|
||||
### RHEL-specific patches below ###
|
||||
|
||||
|
|
@ -149,7 +152,7 @@ Source102: cargo_vendor.attr
|
|||
Source103: cargo_vendor.prov
|
||||
|
||||
# Disable cargo->libgit2->libssh2 on RHEL, as it's not approved for FIPS (rhbz1732949)
|
||||
Patch100: rustc-1.86.0-disable-libssh2.patch
|
||||
Patch100: rustc-1.92.0-disable-libssh2.patch
|
||||
|
||||
# Get the Rust triple for any architecture and ABI.
|
||||
%{lua: function rust_triple(arch, abi)
|
||||
|
|
@ -289,6 +292,7 @@ BuildRequires: %{llvm}-devel >= %{min_llvm_version}
|
|||
%if %with llvm_static
|
||||
BuildRequires: %{llvm}-static
|
||||
BuildRequires: libffi-devel
|
||||
BuildRequires: libxml2-devel
|
||||
%endif
|
||||
%endif
|
||||
|
||||
|
|
@ -298,7 +302,7 @@ BuildRequires: procps-ng
|
|||
# debuginfo-gdb tests need gdb
|
||||
BuildRequires: gdb
|
||||
# Work around https://bugzilla.redhat.com/show_bug.cgi?id=2275274:
|
||||
# gdb currently prints a "Unable to load 'rpm' module. Please install the python3-rpm package."
|
||||
# gdb currently prints a "Unable to load 'rpm' module. Please install the python3-rpm package."
|
||||
# message that breaks version detection.
|
||||
BuildRequires: python3-rpm
|
||||
|
||||
|
|
@ -312,7 +316,7 @@ Provides: rustc%{?_isa} = %{version}-%{release}
|
|||
# Always require our exact standard library
|
||||
Requires: %{name}-std-static%{?_isa} = %{version}-%{release}
|
||||
|
||||
# The C compiler is needed at runtime just for linking. Someday rustc might
|
||||
# The C compiler is needed at runtime just for linking. Someday rustc might
|
||||
# invoke the linker directly, and then we'll only need binutils.
|
||||
# https://github.com/rust-lang/rust/issues/11937
|
||||
Requires: /usr/bin/cc
|
||||
|
|
@ -379,6 +383,7 @@ Obsoletes: %{name}-analysis < 1.69.0~
|
|||
mkdir -p build/manifests/%{-n*} \
|
||||
%{shrink: \
|
||||
env RUSTC_BOOTSTRAP=1 \
|
||||
RUSTC=%{local_rust_root}/bin/rustc \
|
||||
%{local_rust_root}/bin/cargo tree \
|
||||
--offline --edges normal,build \
|
||||
--prefix none --format "{p}" \
|
||||
|
|
@ -391,8 +396,10 @@ Obsoletes: %{name}-analysis < 1.69.0~
|
|||
>build/manifests/%{-n*}/cargo-vendor.txt \
|
||||
} \
|
||||
)
|
||||
%ifnarch %{bootstrap_arches}
|
||||
%{?fedora:BuildRequires: cargo-rpm-macros}
|
||||
%{?rhel:BuildRequires: rust-toolset}
|
||||
%endif
|
||||
|
||||
%description
|
||||
Rust is a systems programming language that runs blazingly fast, prevents
|
||||
|
|
@ -502,6 +509,8 @@ Summary: GDB pretty printers for Rust
|
|||
BuildArch: noarch
|
||||
Requires: gdb
|
||||
Requires: %{name}-debugger-common = %{version}-%{release}
|
||||
# rust-gdb uses rustc to find the sysroot
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description gdb
|
||||
This package includes the rust-gdb script, which allows easier debugging of Rust
|
||||
|
|
@ -514,6 +523,8 @@ BuildArch: noarch
|
|||
Requires: lldb
|
||||
Requires: python3-lldb
|
||||
Requires: %{name}-debugger-common = %{version}-%{release}
|
||||
# rust-lldb uses rustc to find the sysroot
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description lldb
|
||||
This package includes the rust-lldb script, which allows easier debugging of Rust
|
||||
|
|
@ -552,7 +563,7 @@ BuildRequires: git-core
|
|||
# in sync since some feature development depends on them together.
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
# "cargo vendor" is a builtin command starting with 1.37. The Obsoletes and
|
||||
# "cargo vendor" is a builtin command starting with 1.37. The Obsoletes and
|
||||
# Provides are mostly relevant to RHEL, but harmless to have on Fedora/etc. too
|
||||
Obsoletes: cargo-vendor <= 0.1.23
|
||||
Provides: cargo-vendor = %{version}-%{release}
|
||||
|
|
@ -618,7 +629,7 @@ BuildArch: noarch
|
|||
Recommends: %{name}-std-static = %{version}-%{release}
|
||||
|
||||
%description src
|
||||
This package includes source files for the Rust standard library. It may be
|
||||
This package includes source files for the Rust standard library. It may be
|
||||
useful as a reference for code completion tools in various editors.
|
||||
|
||||
|
||||
|
|
@ -682,6 +693,7 @@ rm -rf %{wasi_libc_dir}/dlmalloc/
|
|||
%if %without bundled_sqlite3
|
||||
%patch -P6 -p1
|
||||
%endif
|
||||
%patch -P7 -p1
|
||||
|
||||
%if %with disabled_libssh2
|
||||
%patch -P100 -p1
|
||||
|
|
@ -738,12 +750,12 @@ sed -i.lzma -e '/LZMA_API_STATIC/d' src/bootstrap/src/core/build_steps/tool.rs
|
|||
%if %{without bundled_llvm} && %{with llvm_static}
|
||||
# Static linking to distro LLVM needs to add -lffi
|
||||
# https://github.com/rust-lang/rust/issues/34486
|
||||
sed -i.ffi -e '$a #[link(name = "ffi")] extern {}' \
|
||||
sed -i.ffi -e '$a #[link(name = "ffi")] extern "C" {}' \
|
||||
compiler/rustc_llvm/src/lib.rs
|
||||
%endif
|
||||
|
||||
# The configure macro will modify some autoconf-related files, which upsets
|
||||
# cargo when it tries to verify checksums in those files. If we just truncate
|
||||
# cargo when it tries to verify checksums in those files. If we just truncate
|
||||
# that file list, cargo won't have anything to complain about.
|
||||
find vendor -name .cargo-checksum.json \
|
||||
-exec sed -i.uncheck -e 's/"files":{[^}]*}/"files":{ }/' '{}' '+'
|
||||
|
|
@ -788,7 +800,7 @@ end}
|
|||
|
||||
# Some builders have relatively little memory for their CPU count.
|
||||
# At least 4GB per CPU is a good rule of thumb for building rustc.
|
||||
%if ! %defined constrain_build
|
||||
%if %undefined constrain_build
|
||||
%define constrain_build(m:) %{lua:
|
||||
for l in io.lines('/proc/meminfo') do
|
||||
if l:sub(1, 9) == "MemTotal:" then
|
||||
|
|
@ -835,11 +847,20 @@ end}
|
|||
%endif
|
||||
%endif
|
||||
|
||||
# Find the compiler-rt library for the Rust profiler_builtins crate.
|
||||
# Find the compiler-rt library for the Rust profiler_builtins and optimized-builtins crates.
|
||||
%define clang_lib %{expand:%%clang%{?llvm_compat_version}_resource_dir}/lib
|
||||
%define profiler %{clang_lib}/%{_arch}-redhat-linux-gnu/libclang_rt.profile.a
|
||||
test -r "%{profiler}"
|
||||
|
||||
# llvm < 21 does not provide a builtins library for s390x.
|
||||
%if "%{_arch}" != "s390x" || 0%{?clang_major_version} >= 21
|
||||
%define optimized_builtins %{clang_lib}/%{_arch}-redhat-linux-gnu/libclang_rt.builtins.a
|
||||
test -r "%{optimized_builtins}"
|
||||
%else
|
||||
%define optimized_builtins false
|
||||
%endif
|
||||
|
||||
|
||||
%configure --disable-option-checking \
|
||||
--docdir=%{_pkgdocdir} \
|
||||
--libdir=%{common_libdir} \
|
||||
|
|
@ -850,6 +871,7 @@ test -r "%{profiler}"
|
|||
--set target.%{rust_triple}.ar=%{__ar} \
|
||||
--set target.%{rust_triple}.ranlib=%{__ranlib} \
|
||||
--set target.%{rust_triple}.profiler="%{profiler}" \
|
||||
--set target.%{rust_triple}.optimized-compiler-builtins="%{optimized_builtins}" \
|
||||
%{?mingw_target_config} \
|
||||
%{?wasm_target_config} \
|
||||
--python=%{__python3} \
|
||||
|
|
@ -870,8 +892,9 @@ test -r "%{profiler}"
|
|||
--set build.test-stage=2 \
|
||||
--set build.optimized-compiler-builtins=false \
|
||||
--set rust.llvm-tools=false \
|
||||
--set rust.verify-llvm-ir=true \
|
||||
--enable-extended \
|
||||
--tools=cargo,clippy,rls,rust-analyzer,rustfmt,src \
|
||||
--tools=cargo,clippy,rust-analyzer,rustdoc,rustfmt,src \
|
||||
--enable-vendor \
|
||||
--enable-verbose-tests \
|
||||
--release-channel=%{channel} \
|
||||
|
|
@ -879,15 +902,19 @@ test -r "%{profiler}"
|
|||
|
||||
%global __x %{__python3} ./x.py
|
||||
|
||||
%if %with rustc_pgo
|
||||
%if %{with rustc_pgo}
|
||||
# Build the compiler with profile instrumentation
|
||||
%define profraw $PWD/build/profiles
|
||||
%define profdata $PWD/build/rustc.profdata
|
||||
mkdir -p "%{profraw}"
|
||||
%{__x} build sysroot --rust-profile-generate="%{profraw}"
|
||||
# Build cargo as a workload to generate compiler profiles
|
||||
# We normally use `x.py`, but in this case we invoke the stage 2 compiler and libs
|
||||
# directly to ensure we use the instrumented compiler.
|
||||
env LLVM_PROFILE_FILE="%{profraw}/default_%%m_%%p.profraw" \
|
||||
%{__x} --keep-stage=0 --keep-stage=1 build cargo
|
||||
LD_LIBRARY_PATH=$PWD/build/host/stage2/lib \
|
||||
RUSTC=$PWD/build/host/stage2/bin/rustc \
|
||||
cargo build --manifest-path=src/tools/cargo/Cargo.toml
|
||||
# Finalize the profile data and clean up the raw files
|
||||
llvm-profdata merge -o "%{profdata}" "%{profraw}"
|
||||
rm -r "%{profraw}" build/%{rust_triple}/stage2*/
|
||||
|
|
@ -933,9 +960,6 @@ for triple in %{?all_targets} ; do
|
|||
DESTDIR=%{buildroot} %{__x} install --target=$triple std
|
||||
done
|
||||
|
||||
# The rls stub doesn't have an install target, but we can just copy it.
|
||||
%{__install} -t %{buildroot}%{_bindir} build/%{rust_triple}/stage2-tools-bin/rls
|
||||
|
||||
# These are transient files used by x.py dist and install
|
||||
rm -rf ./build/dist/ ./build/tmp/
|
||||
|
||||
|
|
@ -1040,9 +1064,29 @@ rm -rf "$TMP_HELLO"
|
|||
%{__x} test --no-fail-fast --skip={src/bootstrap,tests/crashes} || :
|
||||
rm -rf "./build/%{rust_triple}/test/"
|
||||
|
||||
# Cargo tests skip list
|
||||
# Every test skipped here must have a documented reason to be skipped.
|
||||
# Duplicates are safe to add.
|
||||
|
||||
# This test relies on the DNS to fail to resolve the host. DNS is not enabled
|
||||
# in mock in koji so the DNS resolution doesn't take place to begin with.
|
||||
# We test this after packaging
|
||||
%global cargo_test_skip_list net_err_suggests_fetch_with_cli
|
||||
|
||||
%ifarch aarch64
|
||||
# https://github.com/rust-lang/rust/issues/123733
|
||||
%define cargo_test_skip --test-args "--skip panic_abort_doc_tests"
|
||||
%global cargo_test_skip_list %{cargo_test_skip_list} panic_abort_doc_tests
|
||||
%endif
|
||||
%if %with disabled_libssh2
|
||||
# These tests need ssh - guaranteed to fail when libssh2 is disabled.
|
||||
%global cargo_test_skip_list %{shrink:
|
||||
%{cargo_test_skip_list}
|
||||
net_err_suggests_fetch_with_cli
|
||||
ssh_something_happens
|
||||
}
|
||||
%endif
|
||||
%if "%{cargo_test_skip_list}" != ""
|
||||
%define cargo_test_skip --test-args "%(printf -- '--skip %%s ' %{cargo_test_skip_list})"
|
||||
%endif
|
||||
%{__x} test --no-fail-fast cargo %{?cargo_test_skip} || :
|
||||
rm -rf "./build/%{rust_triple}/stage2-tools/%{rust_triple}/cit/"
|
||||
|
|
@ -1053,7 +1097,6 @@ rm -rf "./build/%{rust_triple}/stage2-tools/%{rust_triple}/cit/"
|
|||
|
||||
%{__x} test --no-fail-fast rustfmt || :
|
||||
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
|
||||
|
|
@ -1069,6 +1112,7 @@ rm -rf "./build/%{rust_triple}/stage2-tools/%{rust_triple}/cit/"
|
|||
%license build/manifests/rustc/cargo-vendor.txt
|
||||
%license %{_pkgdocdir}/COPYRIGHT.html
|
||||
%license %{_pkgdocdir}/licenses/
|
||||
%exclude %{_sysconfdir}/target-spec-json-schema.json
|
||||
|
||||
|
||||
%files std-static
|
||||
|
|
@ -1180,7 +1224,6 @@ rm -rf "./build/%{rust_triple}/stage2-tools/%{rust_triple}/cit/"
|
|||
|
||||
|
||||
%files analyzer
|
||||
%{_bindir}/rls
|
||||
%{_bindir}/rust-analyzer
|
||||
%doc src/tools/rust-analyzer/README.md
|
||||
%license src/tools/rust-analyzer/LICENSE-{APACHE,MIT}
|
||||
|
|
|
|||
|
|
@ -1,44 +0,0 @@
|
|||
diff -up rustc-beta-src/src/tools/cargo/Cargo.lock.orig rustc-beta-src/src/tools/cargo/Cargo.lock
|
||||
--- rustc-beta-src/src/tools/cargo/Cargo.lock.orig 2025-03-11 15:36:38.387335541 -0700
|
||||
+++ rustc-beta-src/src/tools/cargo/Cargo.lock 2025-03-11 15:39:27.491711044 -0700
|
||||
@@ -2528,7 +2528,6 @@ checksum = "e1a117465e7e1597e8febea8bb0c
|
||||
dependencies = [
|
||||
"cc",
|
||||
"libc",
|
||||
- "libssh2-sys",
|
||||
"libz-sys",
|
||||
"openssl-sys",
|
||||
"pkg-config",
|
||||
@@ -2574,20 +2573,6 @@ dependencies = [
|
||||
"pkg-config",
|
||||
"vcpkg",
|
||||
]
|
||||
-
|
||||
-[[package]]
|
||||
-name = "libssh2-sys"
|
||||
-version = "0.3.1"
|
||||
-source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
-checksum = "220e4f05ad4a218192533b300327f5150e809b54c4ec83b5a1d91833601811b9"
|
||||
-dependencies = [
|
||||
- "cc",
|
||||
- "libc",
|
||||
- "libz-sys",
|
||||
- "openssl-sys",
|
||||
- "pkg-config",
|
||||
- "vcpkg",
|
||||
-]
|
||||
|
||||
[[package]]
|
||||
name = "libz-sys"
|
||||
diff -up rustc-beta-src/src/tools/cargo/Cargo.toml.orig rustc-beta-src/src/tools/cargo/Cargo.toml
|
||||
--- rustc-beta-src/src/tools/cargo/Cargo.toml.orig 2025-03-11 15:36:38.389045348 -0700
|
||||
+++ rustc-beta-src/src/tools/cargo/Cargo.toml 2025-03-11 15:38:36.948228456 -0700
|
||||
@@ -47,7 +47,7 @@ curl = "0.4.47"
|
||||
curl-sys = "0.4.79"
|
||||
filetime = "0.2.25"
|
||||
flate2 = { version = "1.0.35", default-features = false, features = ["zlib"] }
|
||||
-git2 = "0.20.0"
|
||||
+git2 = { version = "0.20.0", default-features = false, features = ["https"] }
|
||||
git2-curl = "0.21.0"
|
||||
gix = { version = "0.70.0", default-features = false, features = ["blocking-http-transport-curl", "progress-tree", "parallel", "dirwalk"] }
|
||||
glob = "0.3.2"
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
diff -up rustc-beta-src/src/tools/cargo/Cargo.lock.orig rustc-beta-src/src/tools/cargo/Cargo.lock
|
||||
--- rustc-beta-src/src/tools/cargo/Cargo.lock.orig 2025-03-11 15:30:39.383119717 -0700
|
||||
+++ rustc-beta-src/src/tools/cargo/Cargo.lock 2025-03-11 15:32:12.486164705 -0700
|
||||
@@ -2571,7 +2571,6 @@ version = "0.31.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ad8935b44e7c13394a179a438e0cebba0fe08fe01b54f152e29a93b5cf993fd4"
|
||||
dependencies = [
|
||||
- "cc",
|
||||
"pkg-config",
|
||||
"vcpkg",
|
||||
]
|
||||
diff -up rustc-beta-src/src/tools/cargo/Cargo.toml.orig rustc-beta-src/src/tools/cargo/Cargo.toml
|
||||
--- rustc-beta-src/src/tools/cargo/Cargo.toml.orig 2025-03-11 15:30:39.384466481 -0700
|
||||
+++ rustc-beta-src/src/tools/cargo/Cargo.toml 2025-03-11 15:32:05.989298381 -0700
|
||||
@@ -80,7 +80,7 @@ proptest = "1.6.0"
|
||||
pulldown-cmark = { version = "0.12.2", default-features = false, features = ["html"] }
|
||||
rand = "0.9.0"
|
||||
regex = "1.11.1"
|
||||
-rusqlite = { version = "0.33.0", features = ["bundled"] }
|
||||
+rusqlite = { version = "0.33.0", features = [] }
|
||||
rustc-hash = "2.1.1"
|
||||
rustc-stable-hash = "0.1.1"
|
||||
rustfix = { version = "0.9.0", path = "crates/rustfix" }
|
||||
44
rustc-1.92.0-disable-libssh2.patch
Normal file
44
rustc-1.92.0-disable-libssh2.patch
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
diff -up rustc-beta-src/src/tools/cargo/Cargo.lock.orig rustc-beta-src/src/tools/cargo/Cargo.lock
|
||||
--- rustc-beta-src/src/tools/cargo/Cargo.lock.orig 2025-08-16 15:47:14.000000000 -0700
|
||||
+++ rustc-beta-src/src/tools/cargo/Cargo.lock 2025-08-18 17:31:39.554771554 -0700
|
||||
@@ -2800,7 +2800,6 @@ checksum = "1c42fe03df2bd3c53a3a9c7317ad
|
||||
dependencies = [
|
||||
"cc",
|
||||
"libc",
|
||||
- "libssh2-sys",
|
||||
"libz-sys",
|
||||
"openssl-sys",
|
||||
"pkg-config",
|
||||
@@ -2847,20 +2846,6 @@ dependencies = [
|
||||
"pkg-config",
|
||||
"vcpkg",
|
||||
]
|
||||
-
|
||||
-[[package]]
|
||||
-name = "libssh2-sys"
|
||||
-version = "0.3.1"
|
||||
-source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
-checksum = "220e4f05ad4a218192533b300327f5150e809b54c4ec83b5a1d91833601811b9"
|
||||
-dependencies = [
|
||||
- "cc",
|
||||
- "libc",
|
||||
- "libz-sys",
|
||||
- "openssl-sys",
|
||||
- "pkg-config",
|
||||
- "vcpkg",
|
||||
-]
|
||||
|
||||
[[package]]
|
||||
name = "libz-rs-sys"
|
||||
diff -up rustc-beta-src/src/tools/cargo/Cargo.toml.orig rustc-beta-src/src/tools/cargo/Cargo.toml
|
||||
--- rustc-beta-src/src/tools/cargo/Cargo.toml.orig 2025-08-16 15:47:14.000000000 -0700
|
||||
+++ rustc-beta-src/src/tools/cargo/Cargo.toml 2025-08-18 17:33:02.401743230 -0700
|
||||
@@ -46,7 +46,7 @@ curl = "0.4.48"
|
||||
curl-sys = "0.4.83"
|
||||
filetime = "0.2.26"
|
||||
flate2 = { version = "1.1.2", default-features = false, features = ["zlib-rs"] }
|
||||
-git2 = "0.20.2"
|
||||
+git2 = { version = "0.20.2", default-features = false, features = ["https"] }
|
||||
git2-curl = "0.21.0"
|
||||
# When updating this, also see if `gix-transport` further down needs updating or some auth-related tests will fail.
|
||||
gix = { version = "0.73.0", default-features = false, features = ["progress-tree", "parallel", "dirwalk", "status"] }
|
||||
23
rustc-1.92.0-unbundle-sqlite.patch
Normal file
23
rustc-1.92.0-unbundle-sqlite.patch
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
diff -up rustc-beta-src/src/tools/cargo/Cargo.lock.orig rustc-beta-src/src/tools/cargo/Cargo.lock
|
||||
--- rustc-beta-src/src/tools/cargo/Cargo.lock.orig 2025-11-07 13:31:19.003737886 +0100
|
||||
+++ rustc-beta-src/src/tools/cargo/Cargo.lock 2025-11-07 13:14:41.637982893 +0100
|
||||
@@ -2835,7 +2835,6 @@ version = "0.35.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "133c182a6a2c87864fe97778797e46c7e999672690dc9fa3ee8e241aa4a9c13f"
|
||||
dependencies = [
|
||||
- "cc",
|
||||
"pkg-config",
|
||||
"vcpkg",
|
||||
]
|
||||
diff -up rustc-beta-src/src/tools/cargo/Cargo.toml.orig rustc-beta-src/src/tools/cargo/Cargo.toml
|
||||
--- rustc-beta-src/src/tools/cargo/Cargo.toml.orig 2025-11-07 13:31:28.338643618 +0100
|
||||
+++ rustc-beta-src/src/tools/cargo/Cargo.toml 2025-11-07 13:15:00.266505214 +0100
|
||||
@@ -81,7 +81,7 @@ proptest = "1.8.0"
|
||||
pulldown-cmark = { version = "0.13.0", default-features = false, features = ["html"] }
|
||||
rand = "0.9.2"
|
||||
regex = "1.11.3"
|
||||
-rusqlite = { version = "0.37.0", features = ["bundled"] }
|
||||
+rusqlite = { version = "0.37.0", features = [] }
|
||||
rustc-hash = "2.1.1"
|
||||
rustc-stable-hash = "0.1.2"
|
||||
rustfix = { version = "0.9.2", path = "crates/rustfix" }
|
||||
4
sources
4
sources
|
|
@ -1,2 +1,2 @@
|
|||
SHA512 (rustc-1.86.0-src.tar.xz) = 9ce195e24a03765f7163de16271e3d19d731d4b80fcc2bfd919106c9d42543eade018f712f6947ea3c6e57c6cb2e6841596aa668d608b8da15101a7da14f3097
|
||||
SHA512 (wasi-libc-640c0cfc19a96b099e0791824be5ef0105ce2084.tar.gz) = 7626200112b6e55567855b950baf7c9eeaf47e7de34a30eb9e8b785e0e03063197102d2f39d0846055d6aab7c06232f947a6b8af3dda62c8f02ea39d8f765a5e
|
||||
SHA512 (rustc-1.92.0-src.tar.xz) = a2c0b127933595b9bc2063d7b7c88d9af512c4664b18f29d44c9a6e2c68d194b87a3071717e8f1b7c858ae940baca888e10be95cd31e0201916d0bfc312a3b15
|
||||
SHA512 (wasi-libc-wasi-sdk-27.tar.gz) = dfc2c36fabf32f465fc833ed0b10efffc9a35c68162ecc3e8d656d1d684d170b734d55e790614d12d925d17f49d60f0d2d01c46cecac941cf62d68eda84df13e
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue