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

Rename CMake vars for modified intrinsics file #6204

Merged
merged 1 commit into from
Jan 6, 2024

Conversation

kripken
Copy link
Member

@kripken kripken commented Jan 5, 2024

The intrinsics file changed in #6201 and somehow CMake doesn't automatically
update itself, and needs a manual step for people with existing checkouts (a new
fresh checkout always works). To avoid annoyance for existing checkouts, rename
the vars, which forces CMake to recompute the contents.

@kripken kripken requested a review from tlively January 5, 2024 23:29
@kripken kripken enabled auto-merge (squash) January 5, 2024 23:29
@kripken kripken requested a review from sbc100 January 6, 2024 00:03
@kripken kripken merged commit 436d639 into WebAssembly:main Jan 6, 2024
14 checks passed
@kripken kripken deleted the rename.vars branch January 6, 2024 00:42
@@ -1,7 +1,7 @@
#include "passes/intrinsics-module.h"

static const char theModule[@WASM_INTRINSICS_SIZE@] = {
@WASM_INTRINSICS_EMBED@
static const char theModule[@WASM_INTRINSICS_SIZE_2@] = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need the size here at all? Won't it be implicit?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we should be able to leave this out.

sbc100 added a commit that referenced this pull request Jan 6, 2024
I think this is a nicer/better way to do #6204.
sbc100 added a commit that referenced this pull request Jan 6, 2024
I think this is a nicer/better way to do #6204.
radekdoulik pushed a commit to dotnet/binaryen that referenced this pull request Jul 12, 2024
The intrinsics file changed in WebAssembly#6201 and somehow CMake doesn't automatically
update itself, and needs a manual step for people with existing checkouts (a new
fresh checkout always works). To avoid annoyance for existing checkouts, rename
the vars, which forces CMake to recompute the contents.
radekdoulik pushed a commit to dotnet/binaryen that referenced this pull request Jul 12, 2024
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.

None yet

3 participants