mirror of
https://github.com/mii443/wasmer.git
synced 2025-08-27 10:49:36 +00:00
Revert "Lower libwasmer headless size"
This commit is contained in:
4
Makefile
4
Makefile
@ -389,7 +389,7 @@ build-wasmer-headless-minimal: RUSTFLAGS += -C panic=abort
|
|||||||
build-wasmer-headless-minimal:
|
build-wasmer-headless-minimal:
|
||||||
RUSTFLAGS="${RUSTFLAGS}" xargo build --target $(HOST_TARGET) --release --manifest-path=lib/cli/Cargo.toml --no-default-features --features headless-minimal --bin wasmer-headless
|
RUSTFLAGS="${RUSTFLAGS}" xargo build --target $(HOST_TARGET) --release --manifest-path=lib/cli/Cargo.toml --no-default-features --features headless-minimal --bin wasmer-headless
|
||||||
ifeq ($(IS_DARWIN), 1)
|
ifeq ($(IS_DARWIN), 1)
|
||||||
strip target/$(HOST_TARGET)/release/wasmer-headless
|
strip -u target/$(HOST_TARGET)/release/wasmer-headless
|
||||||
else ifeq ($(IS_WINDOWS), 1)
|
else ifeq ($(IS_WINDOWS), 1)
|
||||||
strip --strip-unneeded target/$(HOST_TARGET)/release/wasmer-headless.exe
|
strip --strip-unneeded target/$(HOST_TARGET)/release/wasmer-headless.exe
|
||||||
else
|
else
|
||||||
@ -455,7 +455,7 @@ build-capi-llvm-universal: capi-setup
|
|||||||
# Headless (we include the minimal to be able to run)
|
# Headless (we include the minimal to be able to run)
|
||||||
|
|
||||||
build-capi-headless: capi-setup
|
build-capi-headless: capi-setup
|
||||||
RUSTFLAGS="${RUSTFLAGS} -C panic=abort -C link-dead-code -C lto -O -C embed-bitcode=yes" $(CARGO_BINARY) build $(CARGO_TARGET) --manifest-path lib/c-api/Cargo.toml --release \
|
RUSTFLAGS="${RUSTFLAGS} -C panic=abort" $(CARGO_BINARY) build $(CARGO_TARGET) --manifest-path lib/c-api/Cargo.toml --release \
|
||||||
--no-default-features --features compiler-headless,wasi
|
--no-default-features --features compiler-headless,wasi
|
||||||
|
|
||||||
build-capi-headless-ios: capi-setup
|
build-capi-headless-ios: capi-setup
|
||||||
|
@ -17,7 +17,7 @@ edition = "2018"
|
|||||||
# a conflict with the existing `wasmer` crate, see below.
|
# a conflict with the existing `wasmer` crate, see below.
|
||||||
name = "wasmer" # ##lib.name##
|
name = "wasmer" # ##lib.name##
|
||||||
# ^ DO NOT REMOVE, it's used the `Makefile`, see `build-docs-capi`.
|
# ^ DO NOT REMOVE, it's used the `Makefile`, see `build-docs-capi`.
|
||||||
crate-type = ["staticlib", "cdylib"] #"cdylib", "rlib", "staticlib"]
|
crate-type = ["cdylib", "rlib", "staticlib"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
# We rename `wasmer` to `wasmer-api` to avoid the conflict with this
|
# We rename `wasmer` to `wasmer-api` to avoid the conflict with this
|
||||||
|
@ -10,6 +10,9 @@ license = "MIT"
|
|||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
crate-type = ["cdylib", "rlib"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
cfg-if = "1.0"
|
cfg-if = "1.0"
|
||||||
thiserror = "1"
|
thiserror = "1"
|
||||||
|
Reference in New Issue
Block a user