mirror of https://github.com/godotengine/godot
Merge pull request #105242 from adamscott/add-wasm-ld-wall
[Web] Add the equivalent of `-Werror` for `wasm-ld`
This commit is contained in:
commit
608e7a27eb
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue