We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 212d516 commit 3ba8749Copy full SHA for 3ba8749
compiler/rustc_target/src/spec/tests/tests_impl.rs
@@ -121,7 +121,13 @@ impl Target {
121
// Check dynamic linking stuff
122
// BPF: when targeting user space vms (like rbpf), those can load dynamic libraries.
123
// hexagon: when targeting QuRT, that OS can load dynamic libraries.
124
- if self.os == "none" && (self.arch != "bpf" && self.arch != "hexagon") {
+ // wasm{32,64}: dynamic linking is inherent in the definition of the VM.
125
+ if self.os == "none"
126
+ && (self.arch != "bpf"
127
+ && self.arch != "hexagon"
128
+ && self.arch != "wasm32"
129
+ && self.arch != "wasm64")
130
+ {
131
assert!(!self.dynamic_linking);
132
}
133
if self.only_cdylib
0 commit comments