aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-01-02 18:38:44 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-01-02 18:38:44 -0800
commit8bd21f1fff1ddac70f617291dbe2501efa11be30 (patch)
treeb6bdcffd122b1a752b6a553518fde1ff8cc414a7 /emcc
parente38e23dec37f0e110775312575b825bfdd31cf2e (diff)
deprecate compression
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc5
1 files changed, 4 insertions, 1 deletions
diff --git a/emcc b/emcc
index a7f286ed..a4873e7a 100755
--- a/emcc
+++ b/emcc
@@ -348,7 +348,9 @@ Options that are modified or new in %s include:
--embed-file and --preload-file
wildcard is supported
- --compression <codec> Compress both the compiled code and embedded/
+ --compression <codec> **THIS OPTION IS DEPRECATED**
+
+ Compress both the compiled code and embedded/
preloaded files. <codec> should be a triple,
<native_encoder>,<js_decoder>,<js_name>
@@ -922,6 +924,7 @@ try:
newargs[i] = ''
newargs[i+1] = ''
elif newargs[i].startswith('--compression'):
+ logging.warning('--compression is deprecated. Instead, it is recommended you use native gzip compression in your webserver')
check_bad_eq(newargs[i])
parts = newargs[i+1].split(',')
assert len(parts) == 3, '--compression requires specifying native_encoder,js_decoder,js_name - see emcc --help. got: %s' % newargs[i+1]