aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-05-01 17:07:32 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-05-01 17:07:45 -0700
commit4c0580aa21a18beac0973dc37056348790fe10d1 (patch)
treeaa84712229ac7693926744f689988e3444cf3977
parent8ed04a7344b6bb8b54e309990561e39ab6a595ea (diff)
only recommend jcache with -g
-rwxr-xr-xemcc5
1 files changed, 2 insertions, 3 deletions
diff --git a/emcc b/emcc
index 2a1a811d..3df65236 100755
--- a/emcc
+++ b/emcc
@@ -441,7 +441,7 @@ 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
+ Note that you should use -g during the linking
stage (bitcode to JS), for jcache to work
(otherwise, JS minification can confuse it).
@@ -1034,8 +1034,7 @@ 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 jcache and not keep_js_debug: print >> sys.stderr, 'emcc: warning: it is recommended to run jcache with -g when compiling bitcode to JS'
if minify_whitespace is None:
minify_whitespace = opt_level >= 2 and not keep_js_debug