summaryrefslogtreecommitdiff
path: root/src/support/debug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/support/debug.cpp')
-rw-r--r--src/support/debug.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/support/debug.cpp b/src/support/debug.cpp
index 15b708d5e..da006e9c0 100644
--- a/src/support/debug.cpp
+++ b/src/support/debug.cpp
@@ -20,6 +20,8 @@
#include <set>
#include <string>
+#ifndef NDEBUG
+
static bool debugEnabled = false;
static std::set<std::string> debugTypesEnabled;
@@ -49,3 +51,5 @@ void wasm::setDebugEnabled(const char* types) {
start += type_size + 1;
}
}
+
+#endif