]> Repositorios git - scryer-prolog.git/commitdiff
Check for target_arch = “wasm32”
authorNicolas Luck <[email protected]>
Thu, 2 Nov 2023 18:07:55 +0000 (19:07 +0100)
committerNicolas Luck <[email protected]>
Thu, 2 Nov 2023 18:07:55 +0000 (19:07 +0100)
instead of target_os = “wasi”

src/bin/scryer-prolog.rs

index f138024b4b5138e6443a6011f7b42313653c8165..aa507cfd2c22ffa8600fd84aee7a49f22f50ac61 100644 (file)
@@ -9,13 +9,13 @@ fn main() -> std::process::ExitCode {
     })
     .unwrap();
 
-    #[cfg(target_os = "wasi")]
+    #[cfg(target_arch = "wasm32")]
     let runtime = tokio::runtime::Builder::new_current_thread()
         .enable_all()
         .build()
         .unwrap();
 
-    #[cfg(not(target_os = "wasi"))]
+    #[cfg(not(target_arch = "wasm32"))]
     let runtime = tokio::runtime::Builder::new_multi_thread()
         .enable_all()
         .build()