Fixed capi

This commit is contained in:
Syrus 2019-07-05 19:55:03 -07:00
parent 2569d3b40c
commit 7a120f48d7
3 changed files with 10 additions and 4 deletions

View File

@ -77,8 +77,13 @@ llvm: spectests-llvm emtests-llvm middleware-llvm wasitests-llvm
# All tests
test-rest:
cargo test --release --all --exclude wasmer-emscripten --exclude wasmer-spectests --exclude wasmer-wasi --exclude wasmer-middleware-common --exclude wasmer-singlepass-backend --exclude wasmer-clif-backend --exclude wasmer-llvm-backend
capi:
cargo build --release
cargo build -p wasmer-runtime-c-api --release
cargo test -p wasmer-runtime-c-api --release
test-rest: capi
cargo test --release --all --exclude wasmer-runtime-c-api --exclude wasmer-emscripten --exclude wasmer-spectests --exclude wasmer-wasi --exclude wasmer-middleware-common --exclude wasmer-singlepass-backend --exclude wasmer-clif-backend --exclude wasmer-llvm-backend
circleci-clean:
@if [ ! -z "${CIRCLE_JOB}" ]; then rm -f /home/circleci/project/target/debug/deps/libcranelift_wasm* && rm -f /Users/distiller/project/target/debug/deps/libcranelift_wasm*; fi;
@ -104,7 +109,7 @@ build:
cargo build --release --features debug
install:
cargo install --release --path .
cargo install --path .
release:
cargo build --release --features backend:singlepass,backend:llvm,loader:kernel

View File

@ -196,6 +196,7 @@ Each integration can be tested separately:
* Emscripten: `make emtests`
* WASI: `make wasi`
* Middleware: `make middleware`
* C API: `make capi`
## Benchmarking

View File

@ -17,7 +17,7 @@ add_executable(test-validate test-validate.c)
find_library(
WASMER_LIB NAMES libwasmer_runtime_c_api.dylib libwasmer_runtime_c_api.so libwasmer_runtime_c_api.dll
PATHS ${CMAKE_SOURCE_DIR}/../../../target/debug/
PATHS ${CMAKE_SOURCE_DIR}/../../../target/release/
)
if(NOT WASMER_LIB)