Add the equivalent of -Werror for wasm-ld
This commit is contained in:
parent
af2c713971
commit
ce4f64583a
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue