mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
Fix M1 mac build
I changed wasmer to use the llvm backend because it compiles the fastest and supports aarch64. If we later run into llvm versioning issues of some sort, we should switch this to cranelift. Also re-adds serde-json which is used on macos.
This commit is contained in:
parent
73e2cbcb1e
commit
40f0271ccf
6 changed files with 88 additions and 41 deletions
|
@ -32,6 +32,9 @@ tempfile = "3.2.0"
|
|||
inkwell = { path = "../../vendor/inkwell", optional = true }
|
||||
target-lexicon = "0.12.2"
|
||||
|
||||
[target.'cfg(target_os = "macos")'.dependencies]
|
||||
serde_json = "1.0.69"
|
||||
|
||||
[features]
|
||||
default = ["llvm", "target-aarch64", "target-x86_64", "target-wasm32"]
|
||||
target-arm = []
|
||||
|
|
|
@ -12,7 +12,7 @@ roc_mono = { path = "../mono" }
|
|||
bumpalo = { version = "3.8.0", features = ["collections"] }
|
||||
|
||||
roc_std = { path = "../../roc_std" }
|
||||
wasmer = { version = "2.0.0", default-features = false, features = ["default-singlepass", "default-universal"] }
|
||||
wasmer = { version = "2.0.0", default-features = false, features = ["default-llvm", "default-universal"] }
|
||||
|
||||
[dev-dependencies]
|
||||
roc_can = { path = "../can" }
|
||||
|
|
|
@ -32,7 +32,7 @@ libc = "0.2.106"
|
|||
inkwell = { path = "../../vendor/inkwell" }
|
||||
target-lexicon = "0.12.2"
|
||||
libloading = "0.7.1"
|
||||
wasmer = { version = "2.0.0", default-features = false, features = ["default-singlepass", "default-universal"] }
|
||||
wasmer = { version = "2.0.0", default-features = false, features = ["default-llvm", "default-universal"] }
|
||||
wasmer-wasi = "2.0.0"
|
||||
tempfile = "3.2.0"
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ edition = "2018"
|
|||
# roc_module = { path = "../module" }
|
||||
# roc_mono = { path = "../mono" }
|
||||
|
||||
wasmer = { version = "2.0.0", default-features = false, features = ["default-singlepass", "default-universal"] }
|
||||
wasmer = { version = "2.0.0", default-features = false, features = ["default-llvm", "default-universal"] }
|
||||
wasmer-wasi = "2.0.0"
|
||||
|
||||
roc_collections = { path = "../collections" }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue