Skip to content

Commit 0046ce4

Browse files
committed
Partial support for wasm32-unknown-wasi as host triple
This needs a rustc compiled for wasi (see rust-lang/miri#722) It also needs bytecodealliance/target-lexicon#14
1 parent e998997 commit 0046ce4

File tree

4 files changed

+171
-156
lines changed

4 files changed

+171
-156
lines changed

Cargo.lock

Lines changed: 7 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@ authors = ["bjorn3 <[email protected]>"]
77
edition = "2018"
88

99
[lib]
10-
crate-type = ["dylib"]
10+
crate-type = ["rlib", "dylib"]
1111

1212
[dependencies]
1313
# These have to be in sync with each other
1414
cranelift = { git = "https://github.com/CraneStation/cranelift.git" }
1515
cranelift-module = { git = "https://github.com/CraneStation/cranelift.git" }
16-
cranelift-simplejit = { git = "https://github.com/CraneStation/cranelift.git" }
1716
cranelift-faerie = { git = "https://github.com/CraneStation/cranelift.git" }
1817
target-lexicon = "0.4.0"
1918
faerie = "0.10.0"
@@ -24,7 +23,6 @@ bitflags = "1.0.3"
2423
byteorder = "1.2.7"
2524
libc = "0.2.53"
2625
tempfile = "3.0.7"
27-
env_logger = "0.6"
2826
gimli = { git = "https://github.com/gimli-rs/gimli.git" }
2927
indexmap = "1.0.2"
3028

@@ -38,5 +36,8 @@ indexmap = "1.0.2"
3836
#[patch."https://github.com/gimli-rs/gimli.git"]
3937
#gimli = { path = "../" }
4038

39+
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
40+
cranelift-simplejit = { git = "https://github.com/CraneStation/cranelift.git" }
41+
4142
[profile.dev.overrides."*"]
4243
opt-level = 3

0 commit comments

Comments
 (0)