Skip to content

SCons: Enable werror for non-MSVC linkers#109312

Draft
Repiteo wants to merge 1 commit into
godotengine:masterfrom
Repiteo:scons/linker-werror
Draft

SCons: Enable werror for non-MSVC linkers#109312
Repiteo wants to merge 1 commit into
godotengine:masterfrom
Repiteo:scons/linker-werror

Conversation

@Repiteo

@Repiteo Repiteo commented Aug 4, 2025

Copy link
Copy Markdown
Contributor

The werror setting has always enabled warnings-as-errors for the compiler, but the linker has been applied inconsistently. Currently, only MSVC has linker warnings as errors in a universal manner; clang/gcc only enables them for web builds. This PR removes the web-specific implementation, instead applying it at a global level

@Repiteo Repiteo added this to the 4.6 milestone Aug 4, 2025
@Repiteo Repiteo requested a review from a team as a code owner August 4, 2025 18:58
@Repiteo Repiteo marked this pull request as draft August 4, 2025 19:13

@Calinou Calinou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Tested locally on Fedora 42 + mold from system repositories, it works as expected (with werror=yes). Code looks good to me.

Comment thread SConstruct Outdated
@Repiteo Repiteo force-pushed the scons/linker-werror branch 6 times, most recently from 8a2fdf7 to 47fc7fa Compare August 7, 2025 22:52
@Repiteo Repiteo modified the milestones: 4.6, 4.x Nov 20, 2025
@Repiteo Repiteo force-pushed the scons/linker-werror branch 3 times, most recently from c4af768 to f0c1c6c Compare June 19, 2026 20:01
@Repiteo Repiteo force-pushed the scons/linker-werror branch from f0c1c6c to 5005387 Compare June 19, 2026 21:17
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