Browse Source

Fix native feature detect in "min" builds (#7338)

With a custom standard library disabling all features means disabling
some support for feature-detection macros of the native platform. This
meant that `wasmtime compile` output locally wasn't runnable in
`wasmtime-min run` because it couldn't correctly detect that features
were in fact available.
pull/7343/head
Alex Crichton 1 year ago
committed by GitHub
parent
commit
5adcbb9685
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ci/build-release-artifacts.sh

2
ci/build-release-artifacts.sh

@ -28,7 +28,7 @@ if [[ "$build" = *-min ]]; then
export RUSTFLAGS=-Zlocation-detail=none
export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
export CARGO_PROFILE_RELEASE_LTO=true
flags="-Zbuild-std=std,panic_abort --no-default-features -Zbuild-std-features="
flags="-Zbuild-std=std,panic_abort --no-default-features -Zbuild-std-features=std_detect_dlsym_getauxval"
flags="$flags --features disable-logging"
else
# For release builds the CLI is built a bit more feature-ful than the Cargo

Loading…
Cancel
Save