summaryrefslogtreecommitdiff
path: root/src/passes/Print.cpp
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-08-23 11:33:57 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-09-07 09:55:06 -0700
commit1d3f3dda67c24c148dce13734c21cdab487ddc87 (patch)
treedf3b126c50cfdcc66afddf32497ee542abab13cc /src/passes/Print.cpp
parenteb1def34a4183c5a4227686fee5209e2419ecce7 (diff)
downloadbinaryen-1d3f3dda67c24c148dce13734c21cdab487ddc87.tar.gz
binaryen-1d3f3dda67c24c148dce13734c21cdab487ddc87.tar.bz2
binaryen-1d3f3dda67c24c148dce13734c21cdab487ddc87.zip
allow forcing full print mode in the env
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r--src/passes/Print.cpp3
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_) {