mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 06:15:33 +00:00
Merge pull request #220 from wasmerio/feature/better-debug
Added debug build
This commit is contained in:
commit
c7f3666354
@ -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
Makefile
5
Makefile
@ -19,7 +19,7 @@ capi:
|
||||
# rm -rf artifacts
|
||||
|
||||
build:
|
||||
cargo build
|
||||
cargo build --features debug
|
||||
|
||||
install:
|
||||
cargo install --path .
|
||||
@ -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"
|
||||
|
||||
|
@ -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")?
|
||||
|
Loading…
Reference in New Issue
Block a user