Skip to content

Remove binaryen.js debug build changes to WASM_BIGINT flag#5654

Merged
kripken merged 3 commits intomainfrom
js.no.bigint
Apr 13, 2023
Merged

Remove binaryen.js debug build changes to WASM_BIGINT flag#5654
kripken merged 3 commits intomainfrom
js.no.bigint

Conversation

@kripken
Copy link
Member

@kripken kripken commented Apr 11, 2023

Fixes #5647

CMakeLists.txt Outdated
add_link_flag("-sERROR_ON_WASM_CHANGES_AFTER_LINK")
add_link_flag("-sWASM_BIGINT")
else()
# Note: to debug with DWARF you will need something like
Copy link
Member

Choose a reason for hiding this comment

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

How about putting option(ENABLE_BIGINT "Enable wasm Bigint" OFF) and putting this behind the option to make it easy to enable this?

Copy link
Member

Choose a reason for hiding this comment

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

+1, and also can you elaborate on the comment a little more? It's not DWARF support doesn't exist in Binaryen at all, but it doesn't fully preserve some info, so...

Copy link
Member Author

Choose a reason for hiding this comment

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

Sounds good, option added + comments.

@kripken kripken merged commit c72777f into main Apr 13, 2023
@kripken kripken deleted the js.no.bigint branch April 13, 2023 16:50
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.

Difference between Binaryen.js release and debug builds regarding BigInt

3 participants