Skip to content

Don't enable USE_GLFW by default#19939

Merged
sbc100 merged 1 commit intomainfrom
glfw_default
Aug 29, 2023
Merged

Don't enable USE_GLFW by default#19939
sbc100 merged 1 commit intomainfrom
glfw_default

Conversation

@sbc100
Copy link
Copy Markdown
Collaborator

@sbc100 sbc100 commented Jul 31, 2023

This changes the default behaviour to match that of STRICT mode and MINIMAL_RUNTIME node.

We made a similar change for USE_SDL back in #18443.

As part of this change I also updated the code that maps -l flags to JS libraries. In some cases we also want these to set the corresponding -sUSE_XXX setting.

@sbc100 sbc100 changed the title Don't enable USE_GLFW by default [WIP] Don't enable USE_GLFW by default Jul 31, 2023
@sbc100 sbc100 force-pushed the glfw_default branch 2 times, most recently from 9a6c62e to 5df4e2d Compare August 25, 2023 00:54
@sbc100 sbc100 changed the title [WIP] Don't enable USE_GLFW by default Don't enable USE_GLFW by default Aug 25, 2023
@sbc100 sbc100 requested a review from kripken August 25, 2023 00:54
@sbc100 sbc100 force-pushed the glfw_default branch 2 times, most recently from 2805f72 to e3f07cd Compare August 25, 2023 19:26
@kripken
Copy link
Copy Markdown
Member

kripken commented Aug 25, 2023

Do we have a good error for this? I imagine the compiler could say, "glfwInit is a missing symbol so you probably want to add -lglfw" or such?

@sbc100
Copy link
Copy Markdown
Collaborator Author

sbc100 commented Aug 25, 2023

Do we have a good error for this? I imagine the compiler could say, "glfwInit is a missing symbol so you probably want to add -lglfw" or such?

I think it will just say undefined symbol glfwInit.. it would be a wasm-ld error. Sadly we don't have a mechanism to intercept wasm-ld errors and more color..

@kripken
Copy link
Copy Markdown
Member

kripken commented Aug 28, 2023

I see. Well, it's probably good enough, hopefully googling for that error will end up here... and there is the changelog help text.

@sbc100 sbc100 force-pushed the glfw_default branch 2 times, most recently from 4634d77 to 0587533 Compare August 29, 2023 02:18
@sbc100 sbc100 enabled auto-merge (squash) August 29, 2023 02:58
This changes the default behaviour to match that of STRICT mode
and MINIMAL_RUNTIME node.

We made a similar change for USE_SDL back in #18443.

As part of this change I also updated the code that maps `-l` flags
to JS libraries.  In some cases we also want these to set the
corresponding `-sUSE_XXX` setting.
@sbc100 sbc100 disabled auto-merge August 29, 2023 18:12
@sbc100 sbc100 merged commit 48eec4c into main Aug 29, 2023
@sbc100 sbc100 deleted the glfw_default branch August 29, 2023 18:13
sbc100 added a commit to sbc100/emscripten that referenced this pull request Mar 3, 2026
The USE_GLFW setting has been zero by default since emscripten-core#19939
sbc100 added a commit that referenced this pull request Mar 4, 2026
The `USE_GLFW` setting has been zero by default since #19939
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