Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake build: do not strip component-related custom sections in non-wasm-opt config. #99

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

cfallin
Copy link
Member

@cfallin cfallin commented Jul 29, 2024

In #89, I had added an alternative (under USE_WASM_OPT=OFF) to avoid expensive wasm-opt runs for local development. However I had replaced this with wasm-tools strip, which strips all custom sections, including those important for component-related linkage. Getting further along my integration path I discovered the world info for the module was missing.

This PR instead uses wasm-opt -O0 --strip-debug, which does what I want (using the same tool as the ordinary build path) without the expensive opt passes.

…sm-opt config.

In bytecodealliance#89, I had added an alternative (under `USE_WASM_OPT=OFF`) to avoid
expensive wasm-opt runs for local development. However I had replaced
this with `wasm-tools strip`, which strips all custom sections,
including those important for component-related linkage. Getting further
along my integration path I discovered the world info for the module was
missing.

This PR instead uses `wasm-opt -O0 --strip-debug`, which does what I
want (using the same tool as the ordinary build path) without the
expensive opt passes.
@cfallin cfallin requested a review from guybedford July 29, 2024 20:41
@guybedford guybedford merged commit e5fe814 into bytecodealliance:main Jul 29, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants