diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-08-23 11:33:57 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-09-07 09:55:06 -0700 |
commit | 1d3f3dda67c24c148dce13734c21cdab487ddc87 (patch) | |
tree | df3b126c50cfdcc66afddf32497ee542abab13cc | |
parent | eb1def34a4183c5a4227686fee5209e2419ecce7 (diff) | |
download | binaryen-1d3f3dda67c24c148dce13734c21cdab487ddc87.tar.gz binaryen-1d3f3dda67c24c148dce13734c21cdab487ddc87.tar.bz2 binaryen-1d3f3dda67c24c148dce13734c21cdab487ddc87.zip |
allow forcing full print mode in the env
-rw-r--r-- | src/passes/Print.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index 570423efa..0071ede38 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -40,6 +40,9 @@ struct PrintSExpression : public Visitor<PrintSExpression> { PrintSExpression(std::ostream& o) : o(o) { setMinify(false); + if (getenv("BINARYEN_PRINT_FULL")) { + full = std::stoi(getenv("BINARYEN_PRINT_FULL")); + } } void setMinify(bool minify_) { |