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

[Web] Fix debug symbols in web builds #91800

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

Faless
Copy link
Collaborator

@Faless Faless commented May 10, 2024

This seem to have regressed at some point, not sure if it regressed in emcc or the godot build system yet.

In general, -g options are also link flags emcc.

Draft as this needs some more investigation.

Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

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

Looks fine to me if it works.

@akien-mga
Copy link
Member

The findings in #94088 confirm that passing those to the linker is needed for Emscripten. I don't think it's harmful for other toolchains.

@Faless
Copy link
Collaborator Author

Faless commented Jul 10, 2024

The findings in #94088 confirm that passing those to the linker is needed for Emscripten. I don't think it's harmful for other toolchains.

I see, I've updated this PR with my latest finding, i.e. that emscripten requires -g3 to generate dwarf symbols.

I think this is ready for review 👀

@Faless Faless marked this pull request as ready for review July 10, 2024 12:23
@Faless Faless requested a review from a team as a code owner July 10, 2024 12:23
@akien-mga akien-mga modified the milestones: 4.4, 4.3 Jul 10, 2024
@akien-mga akien-mga merged commit 12a363f into godotengine:master Jul 10, 2024
18 checks passed
@akien-mga
Copy link
Member

Thanks!

@Faless Faless deleted the web/fix_symbols branch July 12, 2024 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants