1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +00:00

Merge pull request #105242 from adamscott/add-wasm-ld-wall

[Web] Add the equivalent of `-Werror` for `wasm-ld`
This commit is contained in:
Thaddeus Crews
2025-04-11 09:51:12 -05:00

View File

@@ -130,6 +130,10 @@ def configure(env: "SConsEnvironment"):
## Copy env variables.
env["ENV"] = os.environ
# This makes `wasm-ld` treat all warnings as errors.
if env["werror"]:
env.Append(LINKFLAGS=["-Wl,--fatal-warnings"])
# LTO
if env["lto"] == "auto": # Enable LTO for production.