1
0
Fork 0

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
commit 608e7a27eb
No known key found for this signature in database
GPG Key ID: 8C6E5FEB5FC03CCC
1 changed files with 4 additions and 0 deletions

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.