about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@pobox.com>2024-10-16 18:56:43 -0700
committerGraydon Hoare <graydon@pobox.com>2024-10-22 23:04:44 -0700
commit3ba87498fa3349d63f622593ea7d722105059978 (patch)
treefdfa4da5a9e244e5f146f82a558d16411bda4d44
parent212d516ab0e06b6227ce6c0a6d23960f047537bd (diff)
downloadrust-3ba87498fa3349d63f622593ea7d722105059978.tar.gz
rust-3ba87498fa3349d63f622593ea7d722105059978.zip
Fix rustc_target test: wasmNN-none should support dynamic linking
-rw-r--r--compiler/rustc_target/src/spec/tests/tests_impl.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/compiler/rustc_target/src/spec/tests/tests_impl.rs b/compiler/rustc_target/src/spec/tests/tests_impl.rs
index 7ed21954fba..cc5931be860 100644
--- a/compiler/rustc_target/src/spec/tests/tests_impl.rs
+++ b/compiler/rustc_target/src/spec/tests/tests_impl.rs
@@ -121,7 +121,13 @@ impl Target {
         // Check dynamic linking stuff
         // BPF: when targeting user space vms (like rbpf), those can load dynamic libraries.
         // hexagon: when targeting QuRT, that OS can load dynamic libraries.
-        if self.os == "none" && (self.arch != "bpf" && self.arch != "hexagon") {
+        // wasm{32,64}: dynamic linking is inherent in the definition of the VM.
+        if self.os == "none"
+            && (self.arch != "bpf"
+                && self.arch != "hexagon"
+                && self.arch != "wasm32"
+                && self.arch != "wasm64")
+        {
             assert!(!self.dynamic_linking);
         }
         if self.only_cdylib