Fix compilation for wasm target

This commit is contained in:
Sebastian Miasojed
2024-11-08 12:06:11 +01:00
parent a934ec204e
commit 94445bab93
+4 -3
View File
@@ -49,9 +49,10 @@ libc = { workspace = true }
inkwell = { workspace = true, features = ["target-riscv", "llvm18-0-no-llvm-linking"]}
[features]
default = ["parallel"]
default = []
parallel = ["rayon"]
#TODO: Use pthreads -C target-feature=+atomics,+bulk-memory -Clink-arg=-pthread in compilation and enable `parallel` feature
[target.'cfg(target_os = "emscripten")'.features]
default = []
# Enable parallel_native by default only for non-emscripten targets
[target.'cfg(not(target_os = "emscripten"))'.features]
default = ["parallel_native"]