Skip to content

Commit 61efd2e

Browse files
committed
Patch builtins with a version enabling f16 on s390x
1 parent 6017c68 commit 61efd2e

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

compiler/rustc_codegen_cranelift/patches/0029-stdlib-Disable-f16-and-f128-in-compiler-builtins.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ index 7165c3e48af..968552ad435 100644
1616

1717
[dependencies]
1818
core = { path = "../core", public = true }
19-
-compiler_builtins = { version = "=0.1.150", features = ['rustc-dep-of-std'] }
20-
+compiler_builtins = { version = "=0.1.150", features = ['rustc-dep-of-std', 'no-f16-f128'] }
19+
-compiler_builtins = { version = "0.1.150", features = ['rustc-dep-of-std'] }
20+
+compiler_builtins = { version = "0.1.150", features = ['rustc-dep-of-std', 'no-f16-f128'] }
2121

2222
[dev-dependencies]
2323
rand = { version = "0.8.5", default-features = false, features = ["alloc"] }

library/Cargo.lock

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,8 @@ dependencies = [
6161

6262
[[package]]
6363
name = "compiler_builtins"
64-
version = "0.1.150"
65-
source = "registry+https://github.com/rust-lang/crates.io-index"
66-
checksum = "5c42734e0ccf0d9f953165770593a75306f0b24dda1aa03f115c70748726dbca"
64+
version = "0.1.999"
65+
source = "git+https://github.com/tgross35/compiler-builtins.git?branch=s390x-f16#a1322f02d71d34b53a2343bdff14472851c59994"
6766
dependencies = [
6867
"cc",
6968
"rustc-std-workspace-core",

library/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,4 @@ rustc-demangle.debug = 0
4646
rustc-std-workspace-core = { path = 'rustc-std-workspace-core' }
4747
rustc-std-workspace-alloc = { path = 'rustc-std-workspace-alloc' }
4848
rustc-std-workspace-std = { path = 'rustc-std-workspace-std' }
49+
compiler_builtins = { git = "https://github.com/tgross35/compiler-builtins.git", branch = "s390x-f16" }

library/alloc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ edition = "2021"
1212

1313
[dependencies]
1414
core = { path = "../core", public = true }
15-
compiler_builtins = { version = "=0.1.150", features = ['rustc-dep-of-std'] }
15+
compiler_builtins = { version = "0.1.150", features = ['rustc-dep-of-std'] }
1616

1717
[dev-dependencies]
1818
rand = { version = "0.9.0", default-features = false, features = ["alloc"] }

library/std/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ cfg-if = { version = "1.0", features = ['rustc-dep-of-std'] }
1818
panic_unwind = { path = "../panic_unwind", optional = true }
1919
panic_abort = { path = "../panic_abort" }
2020
core = { path = "../core", public = true }
21-
compiler_builtins = { version = "=0.1.150" }
21+
compiler_builtins = { version = "0.1.150" }
2222
unwind = { path = "../unwind" }
2323
hashbrown = { version = "0.15", default-features = false, features = [
2424
'rustc-dep-of-std',

0 commit comments

Comments
 (0)