diff options
-rwxr-xr-x | clang-tidy-diff.sh | 5 | ||||
-rw-r--r-- | src/passes/pass.cpp | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/clang-tidy-diff.sh b/clang-tidy-diff.sh index 2e5cfc441..0bf952166 100755 --- a/clang-tidy-diff.sh +++ b/clang-tidy-diff.sh @@ -1,7 +1,8 @@ #!/bin/bash -# In settings in which build directory is different than binaryen/, we don't -# have this file in binaryen/, so we skip the test. +# In some Travis CI settings in which the build directory is a subdirectory of +# binaryen/, we don't have the compilation database file in binaryen/. We skip +# the test in this case. if [ ! -f compile_commands.json ] then exit 0 diff --git a/src/passes/pass.cpp b/src/passes/pass.cpp index 8678c75cc..993a9d932 100644 --- a/src/passes/pass.cpp +++ b/src/passes/pass.cpp @@ -698,7 +698,9 @@ void PassRunner::handleAfterEffects(Pass* pass, Function* func) { int PassRunner::getPassDebug() { static const int passDebug = getenv("BINARYEN_PASS_DEBUG") ? atoi(getenv("BINARYEN_PASS_DEBUG")) : 0; - // int WrongStyleTestVar = 3; + int testVar = 5; + if (passDebug > 0) + testVar = 3; return passDebug; } |