diff options
author | Alon Zakai <azakai@google.com> | 2022-08-16 15:22:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-16 15:22:04 -0700 |
commit | 0c0c51257476f319028671cf2322a49683ba1961 (patch) | |
tree | 7b5df18a0e6f420d5233fff357f961a86f124c75 /src | |
parent | da23be08da53ef461f8432b062f3429448cb7ad5 (diff) | |
download | binaryen-0c0c51257476f319028671cf2322a49683ba1961.tar.gz binaryen-0c0c51257476f319028671cf2322a49683ba1961.tar.bz2 binaryen-0c0c51257476f319028671cf2322a49683ba1961.zip |
Validator: Validate globally by default (#4906)
I'm not sure why this defaulted to non-global. Perhaps because of limitations
in the asm.js days. A better default is to validate globally, and this also applies
in pass-debug mode (since that just uses the default there), so this will catch
more problems there.
Diffstat (limited to 'src')
-rw-r--r-- | src/pass.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pass.h b/src/pass.h index 20e099334..924d608b9 100644 --- a/src/pass.h +++ b/src/pass.h @@ -101,7 +101,7 @@ struct PassOptions { // Whether to run the validator to check for errors. bool validate = true; // When validating validate globally and not just locally - bool validateGlobally = false; + bool validateGlobally = true; // 0, 1, 2 correspond to -O0, -O1, -O2, etc. int optimizeLevel = 0; // 0, 1, 2 correspond to -O0, -Os, -Oz |