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

Align emscripten compilation options #180

Merged
merged 5 commits into from
Feb 5, 2025
Merged

Align emscripten compilation options #180

merged 5 commits into from
Feb 5, 2025

Conversation

smiasojed
Copy link
Collaborator

No description provided.

@smiasojed smiasojed marked this pull request as ready for review February 5, 2025 07:54
"-Clink-arg=-sSTACK_SIZE=128kb",
"-Copt-level=3"
"-Clink-arg=-sNODEJS_CATCH_EXIT=0"
Copy link
Member

Choose a reason for hiding this comment

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

Are you removing the opt level on purpose?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I see in logs that compiling in release mode adds this option automatically

Copy link
Member

Choose a reason for hiding this comment

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

Thanks for the clarification.

@@ -142,6 +142,7 @@ fn build_target(
.env("EMCC_DEBUG", "2")
.env("CXXFLAGS", "-Dwait4=__syscall_wait4")
.env("LDFLAGS", "-lnodefs.js -s NO_INVOKE_RUN -s EXIT_RUNTIME -s INITIAL_MEMORY=64MB -s ALLOW_MEMORY_GROWTH -s EXPORTED_RUNTIME_METHODS=FS,callMain,NODEFS -s MODULARIZE -s EXPORT_ES6 -s WASM_BIGINT")
Copy link
Member

Choose a reason for hiding this comment

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

This should be removed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, it should. Thanks!

@smiasojed smiasojed merged commit 10b8ff9 into main Feb 5, 2025
6 checks passed
@smiasojed smiasojed deleted the sm/compile-opts branch February 5, 2025 23:37
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