Panic when using per-package-target #12839
Labels
C-bug
Category: bug
S-needs-mentor
Status: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.
Z-build-std
Nightly: build-std
Z-per-package-target
Nightly: per-package-target
Problem
I am trying to use
per-package-target
to compile one crate from my workspace into WebAssembly. I am getting the following crash:It appears to be crashing on this line (ie.
std_roots
does not containunit.kind
):cargo/src/cargo/core/compiler/unit_dependencies.rs
Line 177 in 8537dff
I put in a logging statement and confirmed that
unit.kind
isTarget(CompileTarget { name: "wasm32-unknown-unknown" })
.Steps
cargo-features = ["per-package-target"]
and useforced-target = "wasm32-unknown-unknown"
cargo build
Possible Solution(s)
Unknown
Notes
I can try to build an example repo if this is difficult to reproduce
Version
I also tested using a local build of 8537dff (the backtrace comes from this version):
The text was updated successfully, but these errors were encountered: