aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc7
1 files changed, 7 insertions, 0 deletions
diff --git a/emcc b/emcc
index a32089c1..2a1a811d 100755
--- a/emcc
+++ b/emcc
@@ -441,6 +441,10 @@ Options that are modified or new in %s include:
(also a global property) does not invalidate
everything.
+ Note that you must add -g during the linking
+ stage (bitcode to JS), for jcache to work
+ (otherwise, JS minification can confuse it).
+
--clear-cache Manually clears the cache of compiled
emscripten system libraries (libc++,
libc++abi, libc). This is normally
@@ -1030,6 +1034,9 @@ try:
print >> sys.stderr, 'emcc: warning: disabling closure because debug info was requested'
closure = False
+ if jcache:
+ assert keep_js_debug, 'must run jcache with -g during link stage' # js minification can confuse jcache
+
if minify_whitespace is None:
minify_whitespace = opt_level >= 2 and not keep_js_debug