Skip to content

Commit

Permalink
Check for target_arch = “wasm32”
Browse files Browse the repository at this point in the history
instead of target_os = “wasi”
  • Loading branch information
lucksus committed Nov 2, 2023
1 parent ee1bd9e commit 59264c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/scryer-prolog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 59264c0

Please sign in to comment.