aboutsummaryrefslogtreecommitdiff
path: root/src/compiler.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-04-20 18:13:03 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-04-20 18:13:03 -0700
commit45bcf3ad360c950765db789bdd54d111d044ffc5 (patch)
tree13ca2b7b7c88165e9f191cde549f883f420d633f /src/compiler.js
parent410a632a1888bde9b78d574aa682f4dc48fb488f (diff)
make library and gl debug configurable at runtime, and share the pretty printing code
Diffstat (limited to 'src/compiler.js')
-rw-r--r--src/compiler.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler.js b/src/compiler.js
index 4442e38e..89da32d5 100644
--- a/src/compiler.js
+++ b/src/compiler.js
@@ -146,6 +146,8 @@ if (PGO) { // by default, correct everything during PGO
EXPORTED_FUNCTIONS = set(EXPORTED_FUNCTIONS);
EXPORTED_GLOBALS = set(EXPORTED_GLOBALS);
+RUNTIME_DEBUG = LIBRARY_DEBUG || GL_DEBUG;
+
// Settings sanity checks
assert(!(USE_TYPED_ARRAYS === 2 && QUANTUM_SIZE !== 4), 'For USE_TYPED_ARRAYS == 2, must have normal QUANTUM_SIZE of 4');