Skip to content

Clean Cargo artifacts between WASM variants#965

Open
PoseidonEnergy wants to merge 1 commit into
dimforge:masterfrom
PoseidonEnergy:cargo-clean-between-variant-builds
Open

Clean Cargo artifacts between WASM variants#965
PoseidonEnergy wants to merge 1 commit into
dimforge:masterfrom
PoseidonEnergy:cargo-clean-between-variant-builds

Conversation

@PoseidonEnergy

Copy link
Copy Markdown

This PR adds a cargo clean step before each wasm-pack build in rapier-compat.

The build variants share the same Cargo target directory but use different RUSTFLAGS, particularly for SIMD and non-SIMD builds. Without cleaning, for me, Cargo reuses artifacts compiled with incompatible target features, causing non-SIMD builds to contain SIMD instructions and fail during wasm-opt validation.

Cleaning before each variant ensures every WASM package is rebuilt with the correct compiler flags.

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.

1 participant