From 94445bab93766c9a42c2c6e1fd583512be1c69f4 Mon Sep 17 00:00:00 2001 From: Sebastian Miasojed Date: Fri, 8 Nov 2024 12:06:11 +0100 Subject: [PATCH] Fix compilation for wasm target --- crates/solidity/Cargo.toml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/solidity/Cargo.toml b/crates/solidity/Cargo.toml index c4fb5b1..790cf51 100644 --- a/crates/solidity/Cargo.toml +++ b/crates/solidity/Cargo.toml @@ -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"]