Only link wasi preview1 to slightly reduce build times #426
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Part of #324. I ran an analysis of what's producing the most LLVM lines in the CLI and it looks like
wasmtime_wasi::sync::snapshots::preview_1::add_wasi_snapshot_preview1_to_linker
andwasmtime_wasi::sync::snapshots::preview_0::add_wasi_unstable_to_linker
were adding about 5% each.We can safely remove the call to add WASI unstable since the provider module doesn't import any of those. This is a very small decrease in build times but seemed like an easy reduction given it's a one line code change.