From 20381a545e53f846d0b3769c24bf04ef96d90ce8 Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Tue, 14 Jun 2022 14:01:12 +0300 Subject: [PATCH] Makefile: add `check` target Add `check` target for quicker development process. --- Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f6589baeb59..4642989bf07 100644 --- a/Makefile +++ b/Makefile @@ -372,6 +372,18 @@ endif # install will go through. all: build-wasmer build-capi +check: check-wasmer check-wasmer-wasm check-capi + +check-wasmer: + $(CARGO_BINARY) check $(CARGO_TARGET) --manifest-path lib/cli/Cargo.toml $(compiler_features) --bin wasmer + +check-wasmer-wasm: + $(CARGO_BINARY) check --manifest-path lib/cli-compiler/Cargo.toml --target wasm32-wasi --features singlepass,cranelift,universal --bin wasmer-compiler + +check-capi: capi-setup + RUSTFLAGS="${RUSTFLAGS}" $(CARGO_BINARY) check $(CARGO_TARGET) --manifest-path lib/c-api/Cargo.toml \ + --no-default-features --features wat,universal,dylib,staticlib,wasi,middlewares $(capi_compiler_features) + build-wasmer: $(CARGO_BINARY) build $(CARGO_TARGET) --release --manifest-path lib/cli/Cargo.toml $(compiler_features) --bin wasmer @@ -382,7 +394,7 @@ bench: $(CARGO_BINARY) bench $(CARGO_TARGET) $(compiler_features) build-wasmer-wasm: - cargo build --release --manifest-path lib/cli-compiler/Cargo.toml --target wasm32-wasi --features singlepass,cranelift,universal --bin wasmer-compiler + $(CARGO_BINARY) build --release --manifest-path lib/cli-compiler/Cargo.toml --target wasm32-wasi --features singlepass,cranelift,universal --bin wasmer-compiler # For best results ensure the release profile looks like the following # in Cargo.toml: