Skip to content

Commit

Permalink
Added debug build
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Feb 26, 2019
1 parent 53c8603 commit f7197bf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ glob = "0.2.11"
[features]
default = ["fast-tests"]

debug = []
debug = ["wasmer-clif-backend/debug", "wasmer-runtime-core/debug"]
# This feature will allow cargo test to run much faster
fast-tests = []
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ capi:
# rm -rf artifacts

build:
cargo build
cargo build --features debug

install:
cargo install --path .
Expand Down Expand Up @@ -47,6 +47,9 @@ release:
# brew install mingw-w64
cargo build --release

debug-release:
cargo build --release --features debug

debug-release:
cargo build --release --features "debug"

Expand Down
2 changes: 1 addition & 1 deletion lib/runtime/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fn main() -> error::Result<()> {
// We're not importing anything, so make an empty import object.
let import_object = imports! {};

let mut instance = instantiate(WASM, import_object)?;
let mut instance = instantiate(WASM, &import_object)?;

let values = instance
.func("add_one")?
Expand Down

0 comments on commit f7197bf

Please sign in to comment.