Executable → Regular
+11
-7
@@ -22,19 +22,23 @@ WorkDir = "rustc-%s-src" %get.srcVERSION()
|
|||||||
#At phase 2, rust will be built again with this newly built rust.
|
#At phase 2, rust will be built again with this newly built rust.
|
||||||
#Before phase 2, the lines below will be commented out.
|
#Before phase 2, the lines below will be commented out.
|
||||||
|
|
||||||
RustBinDir = "rust-%s-x86_64-unknown-linux-gnu" %get.srcVERSION()
|
# Farklı sürüm ile derlenmek isterse aç kendi sürümünü kapat
|
||||||
RustcDir = "%s/rustbin" %get.workDIR()
|
# RustBinDir = "rust-1.89.0-x86_64-unknown-linux-gnu"
|
||||||
|
|
||||||
|
# Kendi sürümü ile derleme
|
||||||
|
# RustBinDir = "rust-%s-x86_64-unknown-linux-gnu" %get.srcVERSION()
|
||||||
|
# RustcDir = "%s/rustbin" %get.workDIR()
|
||||||
|
|
||||||
#################################################################
|
#################################################################
|
||||||
|
|
||||||
def build():
|
def build():
|
||||||
#İkinci aşamada bu satırlar da yoruma çevrilecek.
|
#İkinci aşamada bu satırlar da yoruma çevrilecek.
|
||||||
#At phase 2, these lines also will be commented out.
|
#At phase 2, these lines also will be commented out.
|
||||||
shelltools.cd(RustBinDir)
|
# shelltools.cd(RustBinDir)
|
||||||
shelltools.system("./install.sh --prefix=%s" %RustcDir)
|
# shelltools.system("./install.sh --prefix=%s" %RustcDir)
|
||||||
shelltools.cd("..")
|
# shelltools.cd("..")
|
||||||
pisitools.dosed("config.toml", "/usr/bin/cargo", RustcDir+"/bin/cargo")
|
# pisitools.dosed("config.toml", "/usr/bin/cargo", RustcDir+"/bin/cargo")
|
||||||
pisitools.dosed("config.toml", "/usr/bin/rustc", RustcDir+"/bin/rustc")
|
# pisitools.dosed("config.toml", "/usr/bin/rustc", RustcDir+"/bin/rustc")
|
||||||
####################################################
|
####################################################
|
||||||
|
|
||||||
shelltools.export("LC_ALL", "en_US.UTF-8")
|
shelltools.export("LC_ALL", "en_US.UTF-8")
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
|
||||||
|
Date: Thu, 7 Aug 2025 19:01:26 +0200
|
||||||
|
Subject: [PATCH] bootstrap: Workaround for system stage0
|
||||||
|
|
||||||
|
See: https://github.com/rust-lang/rust/issues/143735
|
||||||
|
---
|
||||||
|
src/bootstrap/src/core/build_steps/compile.rs | 5 ++++-
|
||||||
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/bootstrap/src/core/build_steps/compile.rs b/src/bootstrap/src/core/build_steps/compile.rs
|
||||||
|
index 30cbcc05c429..0b5f1b55a43e 100644
|
||||||
|
--- a/src/bootstrap/src/core/build_steps/compile.rs
|
||||||
|
+++ b/src/bootstrap/src/core/build_steps/compile.rs
|
||||||
|
@@ -796,7 +796,10 @@ 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.
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
|
||||||
|
Date: Fri, 19 Sep 2025 17:42:45 +0200
|
||||||
|
Subject: [PATCH] bootstrap: Workaround for 1.90.0 stage0
|
||||||
|
|
||||||
|
See: https://github.com/rust-lang/rust/issues/143765
|
||||||
|
---
|
||||||
|
src/bootstrap/src/utils/helpers.rs | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/bootstrap/src/utils/helpers.rs b/src/bootstrap/src/utils/helpers.rs
|
||||||
|
index eb00ed566c2d..86b3358a22b7 100644
|
||||||
|
--- a/src/bootstrap/src/utils/helpers.rs
|
||||||
|
+++ b/src/bootstrap/src/utils/helpers.rs
|
||||||
|
@@ -430,17 +430,17 @@ pub fn linker_flags(
|
||||||
|
// cfg(bootstrap) - remove the stage 0 check after updating the bootstrap compiler:
|
||||||
|
// `-Clinker-features` has been stabilized.
|
||||||
|
if stage == 0 {
|
||||||
|
- args.push("-Zlinker-features=+lld".to_string());
|
||||||
|
+ args.push("-Clinker-features=+lld".to_string());
|
||||||
|
} else {
|
||||||
|
args.push("-Clinker-features=+lld".to_string());
|
||||||
|
}
|
||||||
|
args.push("-Zunstable-options".to_string());
|
||||||
|
}
|
||||||
|
LldMode::SelfContained => {
|
||||||
|
// cfg(bootstrap) - remove the stage 0 check after updating the bootstrap compiler:
|
||||||
|
// `-Clinker-features` has been stabilized.
|
||||||
|
if stage == 0 {
|
||||||
|
- args.push("-Zlinker-features=+lld".to_string());
|
||||||
|
+ args.push("-Clinker-features=+lld".to_string());
|
||||||
|
} else {
|
||||||
|
args.push("-Clinker-features=+lld".to_string());
|
||||||
|
}
|
||||||
@@ -1,6 +1,8 @@
|
|||||||
profile = "user"
|
profile = "user"
|
||||||
# changelog-seen = 2
|
# changelog-seen = 2
|
||||||
|
|
||||||
|
change-id = 144675
|
||||||
|
|
||||||
[llvm]
|
[llvm]
|
||||||
link-shared = true
|
link-shared = true
|
||||||
|
|
||||||
@@ -30,6 +32,7 @@ rpath = false
|
|||||||
|
|
||||||
lld = false
|
lld = false
|
||||||
use-lld = "external"
|
use-lld = "external"
|
||||||
|
llvm-bitcode-linker = false
|
||||||
|
|
||||||
# backtrace-on-ice = true
|
# backtrace-on-ice = true
|
||||||
|
|
||||||
|
|||||||
Executable → Regular
+4
-3
@@ -15,12 +15,12 @@
|
|||||||
<Archive sha1sum="1b4ba230854437649e24fc68de0c64560101cc08" type="targz">https://static.rust-lang.org/dist/rustc-1.90.0-src.tar.gz</Archive>
|
<Archive sha1sum="1b4ba230854437649e24fc68de0c64560101cc08" type="targz">https://static.rust-lang.org/dist/rustc-1.90.0-src.tar.gz</Archive>
|
||||||
<!-- Not: İkinci aşamada aşağıdaki satıra ihtiyaç olmayacak. Yoruma çevrilebilir. -->
|
<!-- Not: İkinci aşamada aşağıdaki satıra ihtiyaç olmayacak. Yoruma çevrilebilir. -->
|
||||||
<!-- The line below will be unnecessary at phase 2, can be commented out. -->
|
<!-- The line below will be unnecessary at phase 2, can be commented out. -->
|
||||||
<Archive sha1sum="70fccd40b0a6d1df348a448894ae9e3b4f561849" type="targz" target="rustc-1.90.0-src">https://static.rust-lang.org/dist/rust-1.90.0-x86_64-unknown-linux-gnu.tar.gz</Archive>
|
<!-- <Archive sha1sum="c766649421cf41fb42b26b0157e9e787eb6274f4" type="targz" target="rustc-1.90.0-src">https://static.rust-lang.org/dist/rust-1.89.0-x86_64-unknown-linux-gnu.tar.gz</Archive> -->
|
||||||
<AdditionalFiles>
|
<AdditionalFiles>
|
||||||
<AdditionalFile target="config.toml">bootstrap-config.toml</AdditionalFile>
|
<AdditionalFile target="config.toml">bootstrap-config.toml</AdditionalFile>
|
||||||
</AdditionalFiles>
|
</AdditionalFiles>
|
||||||
<BuildDependencies>
|
<BuildDependencies>
|
||||||
<Dependency versionFrom="1.88.0">rust</Dependency>
|
<Dependency versionFrom="1.90.0">rust</Dependency>
|
||||||
<Dependency>perl</Dependency>"
|
<Dependency>perl</Dependency>"
|
||||||
<Dependency versionFrom="15.0.7">llvm</Dependency>
|
<Dependency versionFrom="15.0.7">llvm</Dependency>
|
||||||
<Dependency>lld-devel</Dependency>
|
<Dependency>lld-devel</Dependency>
|
||||||
@@ -41,7 +41,8 @@
|
|||||||
<Dependency>llvm-clang-devel</Dependency>
|
<Dependency>llvm-clang-devel</Dependency>
|
||||||
</BuildDependencies>
|
</BuildDependencies>
|
||||||
<Patches>
|
<Patches>
|
||||||
<!--Patch level="1">70163.patch</Patch-->
|
<Patch level="1">0008-bootstrap-Workaround-for-system-stage0.patch</Patch>
|
||||||
|
<Patch level="1">0009-bootstrap-Workaround-for-1.90.0-stage0.patch</Patch>
|
||||||
<!-- <Patch level="1">0002-bootstrap-Change-bash-completion-dir.patch</Patch> -->
|
<!-- <Patch level="1">0002-bootstrap-Change-bash-completion-dir.patch</Patch> -->
|
||||||
</Patches>
|
</Patches>
|
||||||
</Source>
|
</Source>
|
||||||
|
|||||||
Reference in New Issue
Block a user