You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Add the equivalent of -Werror for wasm-ld
This commit is contained in:
@@ -130,6 +130,10 @@ def configure(env: "SConsEnvironment"):
|
|||||||
## Copy env variables.
|
## Copy env variables.
|
||||||
env["ENV"] = os.environ
|
env["ENV"] = os.environ
|
||||||
|
|
||||||
|
# This makes `wasm-ld` treat all warnings as errors.
|
||||||
|
if env["werror"]:
|
||||||
|
env.Append(LINKFLAGS=["-Wl,--fatal-warnings"])
|
||||||
|
|
||||||
# LTO
|
# LTO
|
||||||
|
|
||||||
if env["lto"] == "auto": # Enable LTO for production.
|
if env["lto"] == "auto": # Enable LTO for production.
|
||||||
|
|||||||
Reference in New Issue
Block a user