Skip to content

Commit

Permalink
Partial support for wasm32-unknown-wasi as host triple
Browse files Browse the repository at this point in the history
This needs a rustc compiled for wasi (see rust-lang/miri#722)
It also needs bytecodealliance/target-lexicon#14
  • Loading branch information
bjorn3 committed May 11, 2019
1 parent e998997 commit 0046ce4
Show file tree
Hide file tree
Showing 4 changed files with 171 additions and 156 deletions.
17 changes: 7 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ authors = ["bjorn3 <[email protected]>"]
edition = "2018"

[lib]
crate-type = ["dylib"]
crate-type = ["rlib", "dylib"]

[dependencies]
# These have to be in sync with each other
cranelift = { git = "https://github.com/CraneStation/cranelift.git" }
cranelift-module = { git = "https://github.com/CraneStation/cranelift.git" }
cranelift-simplejit = { git = "https://github.com/CraneStation/cranelift.git" }
cranelift-faerie = { git = "https://github.com/CraneStation/cranelift.git" }
target-lexicon = "0.4.0"
faerie = "0.10.0"
Expand All @@ -24,7 +23,6 @@ bitflags = "1.0.3"
byteorder = "1.2.7"
libc = "0.2.53"
tempfile = "3.0.7"
env_logger = "0.6"
gimli = { git = "https://github.com/gimli-rs/gimli.git" }
indexmap = "1.0.2"

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

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
cranelift-simplejit = { git = "https://github.com/CraneStation/cranelift.git" }

[profile.dev.overrides."*"]
opt-level = 3
Loading

0 comments on commit 0046ce4

Please sign in to comment.