Skip to content

Commit e97776b

Browse files
committed
rustc_codegen_llvm: enable wasm in object crate
Otherwise we lose the ability to do crate-level LTO for wasm targets now that we're loading our own bitcode sections instead of using LLVM to do it.
1 parent ee81e0d commit e97776b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Cargo.lock

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2454,6 +2454,7 @@ dependencies = [
24542454
"rustc-std-workspace-alloc",
24552455
"rustc-std-workspace-core",
24562456
"ruzstd",
2457+
"wasmparser",
24572458
]
24582459

24592460
[[package]]
@@ -5823,6 +5824,16 @@ version = "0.2.87"
58235824
source = "registry+https://github.com/rust-lang/crates.io-index"
58245825
checksum = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1"
58255826

5827+
[[package]]
5828+
name = "wasmparser"
5829+
version = "0.110.0"
5830+
source = "registry+https://github.com/rust-lang/crates.io-index"
5831+
checksum = "1dfcdb72d96f01e6c85b6bf20102e7423bdbaad5c337301bab2bbf253d26413c"
5832+
dependencies = [
5833+
"indexmap 2.0.0",
5834+
"semver",
5835+
]
5836+
58265837
[[package]]
58275838
name = "web-sys"
58285839
version = "0.3.61"

compiler/rustc_codegen_llvm/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ measureme = "10.0.0"
1414
object = { version = "0.32.0", default-features = false, features = [
1515
"std",
1616
"read",
17+
"wasm",
1718
] }
1819
tracing = "0.1"
1920
rustc_middle = { path = "../rustc_middle" }

0 commit comments

Comments
 (0)