-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Track patches at AOSC-Tracking/rust @ aosc/v1.83.0 (HEAD: ac98d84d26ce1305335275bb75bf3d55beed4870). - FIXME: Using local bootstrap tarball as we missed a release - rustc needs to bootstrap from an adjacent release.
- Loading branch information
1 parent
eb20063
commit b900783
Showing
4 changed files
with
57 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From 1e21011f5612a2ae77e363217060513572b379f6 Mon Sep 17 00:00:00 2001 | ||
From ba28fdb727b883690a37ebc1b23e42dbbc88255c Mon Sep 17 00:00:00 2001 | ||
From: Jiajie Chen <[email protected]> | ||
Date: Fri, 9 Feb 2024 18:48:33 -0800 | ||
Subject: [PATCH 1/2] Add i486-unknown-linux-gnu compiler target | ||
|
@@ -10,10 +10,10 @@ Subject: [PATCH 1/2] Add i486-unknown-linux-gnu compiler target | |
create mode 100644 compiler/rustc_target/src/spec/targets/i486_unknown_linux_gnu.rs | ||
|
||
diff --git a/compiler/rustc_target/src/spec/mod.rs b/compiler/rustc_target/src/spec/mod.rs | ||
index 607eeac7cc..6278e69006 100644 | ||
index 82e11a3afc..1c813d903b 100644 | ||
--- a/compiler/rustc_target/src/spec/mod.rs | ||
+++ b/compiler/rustc_target/src/spec/mod.rs | ||
@@ -1542,6 +1542,7 @@ supported_targets! { | ||
@@ -1622,6 +1622,7 @@ supported_targets! { | ||
("x86_64-unknown-linux-gnux32", x86_64_unknown_linux_gnux32), | ||
("i686-unknown-linux-gnu", i686_unknown_linux_gnu), | ||
("i586-unknown-linux-gnu", i586_unknown_linux_gnu), | ||
|
@@ -23,18 +23,18 @@ index 607eeac7cc..6278e69006 100644 | |
("m68k-unknown-linux-gnu", m68k_unknown_linux_gnu), | ||
diff --git a/compiler/rustc_target/src/spec/targets/i486_unknown_linux_gnu.rs b/compiler/rustc_target/src/spec/targets/i486_unknown_linux_gnu.rs | ||
new file mode 100644 | ||
index 0000000000..a11fbecc3c | ||
index 0000000000..a57ef97626 | ||
--- /dev/null | ||
+++ b/compiler/rustc_target/src/spec/targets/i486_unknown_linux_gnu.rs | ||
@@ -0,0 +1,8 @@ | ||
+use crate::spec::Target; | ||
+ | ||
+pub fn target() -> Target { | ||
+pub(crate) fn target() -> Target { | ||
+ let mut base = super::i686_unknown_linux_gnu::target(); | ||
+ base.cpu = "i486".into(); | ||
+ base.llvm_target = "i486-unknown-linux-gnu".into(); | ||
+ base | ||
+} | ||
-- | ||
2.46.0 | ||
2.47.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From 9f944a0e2c7ee6a5fee1ff41c793291712a482bf Mon Sep 17 00:00:00 2001 | ||
From ac98d84d26ce1305335275bb75bf3d55beed4870 Mon Sep 17 00:00:00 2001 | ||
From: Jiajie Chen <[email protected]> | ||
Date: Fri, 9 Feb 2024 18:48:40 -0800 | ||
Subject: [PATCH 2/2] Add MIPS definitions to vendored libffi-sys | ||
|
@@ -90,5 +90,5 @@ index e8fd86d03d..f3eb03ca3c 100644 | |
|
||
impl Default for ffi_cif { | ||
-- | ||
2.46.0 | ||
2.47.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,17 @@ | ||
VER=1.81.0 | ||
SRCS="tbl::https://static.rust-lang.org/dist/rustc-${VER}-src.tar.xz" | ||
CHKSUMS="sha256::36217ef7e32f40a180e3d79bd666b4dfdaed49dd381023a5fb765fd12d0092ce" | ||
VER=1.83.0 | ||
|
||
# Note: Uncomment this if we have the last version built and ready. | ||
#SRCS="tbl::https://static.rust-lang.org/dist/rustc-${VER}-src.tar.xz" | ||
#CHKSUMS="sha256::7b11d4242dab0921a7d54758ad3fe805153c979c144625fecde11735760f97df" | ||
|
||
# FIXME: Using local bootstrap tarball as we missed a release - rustc needs | ||
# to bootstrap from an adjacent release. | ||
# | ||
# Comment the following segment if this is not the case. | ||
SRCS="tbl::https://static.rust-lang.org/dist/rustc-${VER}-src.tar.xz \ | ||
tbl::rename=rustc-bootstrap-${VER}-loongson3.tar.xz::https://repo.aosc.io/aosc-repacks/rust-loongson3/rustc-bootstrap-${VER}-loongson3.tar.xz" | ||
CHKSUMS="sha256::7b11d4242dab0921a7d54758ad3fe805153c979c144625fecde11735760f97df \ | ||
sha256::c8bad5abe44f459fd7983a66337543952fea756fcfa73ddd10a869c4c753c336" | ||
|
||
CHKUPDATE="anitya::id=7635" | ||
SUBDIR="rustc-${VER}-src" |