Skip to content

web: Add custom profiles to separate the build cache for the two wasm modules #6043

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

Merged
merged 1 commit into from
Jan 13, 2022

Conversation

torokati44
Copy link
Member

@torokati44 torokati44 commented Jan 13, 2022

A bit of an improvement over #5834.

This avoids always nuking the build cache (twice) when running npm run build:dual-wasm.
While wasm-opt is still doing the work twice, that is a lot faster and less "harmful" - not cache-polluting.

A somewhat related note: I think \\\"$CARGO_FEATURES\\\" causes the --features argument to be passed as literally $CARGO_FEATURES to cargo. Does it then substitute the envvar internally?
EDIT: FWIW setting CARGO_FEATURES=whatever for npm run ... does work, at least on Linux, so I guess it's okay.

@Herschel
Copy link
Member

Thank you!

@Herschel Herschel merged commit 4830287 into ruffle-rs:master Jan 13, 2022
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