about summary refs log tree commit diff
path: root/compiler/rustc_session/src/utils.rs
diff options
context:
space:
mode:
authoryukang <moorekang@gmail.com>2023-03-17 09:23:46 +0800
committeryukang <moorekang@gmail.com>2023-03-19 11:23:19 +0800
commitd5558e67ef86bda546eca72778aeeeda24420926 (patch)
treefd82733ae7b4224df33be30836614288464359f8 /compiler/rustc_session/src/utils.rs
parentc22f154e3fb6eca7dd1e83575564a5ea44d661bc (diff)
downloadrust-d5558e67ef86bda546eca72778aeeeda24420926.tar.gz
rust-d5558e67ef86bda546eca72778aeeeda24420926.zip
The name of NativeLib will be presented
Diffstat (limited to 'compiler/rustc_session/src/utils.rs')
-rw-r--r--compiler/rustc_session/src/utils.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/compiler/rustc_session/src/utils.rs b/compiler/rustc_session/src/utils.rs
index b996d36a318..3b3d4ca5d6b 100644
--- a/compiler/rustc_session/src/utils.rs
+++ b/compiler/rustc_session/src/utils.rs
@@ -37,6 +37,10 @@ pub enum NativeLibKind {
     /// Argument which is passed to linker, relative order with libraries and other arguments
     /// is preserved
     LinkArg,
+
+    /// Module imported from WebAssembly
+    WasmImportModule,
+
     /// The library kind wasn't specified, `Dylib` is currently used as a default.
     Unspecified,
 }
@@ -50,7 +54,10 @@ impl NativeLibKind {
             NativeLibKind::Dylib { as_needed } | NativeLibKind::Framework { as_needed } => {
                 as_needed.is_some()
             }
-            NativeLibKind::RawDylib | NativeLibKind::Unspecified | NativeLibKind::LinkArg => false,
+            NativeLibKind::RawDylib
+            | NativeLibKind::Unspecified
+            | NativeLibKind::LinkArg
+            | NativeLibKind::WasmImportModule => false,
         }
     }