aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-10-17 15:51:41 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-10-17 15:51:41 -0700
commita78aea9e75e2a600fe7a530b950e4c6f40d3bd19 (patch)
tree9cdfdba26e35e961724d331d2e88350b5e2e9bcb
parent6d686fa81e80f096d273e7a710d8afbb4710ba23 (diff)
document the ability to pass arbitrary llvm opt args to --llvm-opts
-rwxr-xr-xemcc4
1 files changed, 4 insertions, 0 deletions
diff --git a/emcc b/emcc
index cfec5534..2aa223db 100755
--- a/emcc
+++ b/emcc
@@ -240,6 +240,10 @@ Options that are modified or new in %s include:
2: -O2 LLVM optimizations
3: -O3 LLVM optimizations (default in -O2+)
+ You can also specify arbitrary LLVM options, e.g.
+
+ --llvm-opts "['-O3', '-somethingelse']"
+
--llvm-lto <level> 0: No LLVM LTO (default)
1: LLVM LTO is performed
2: We combine all the bitcode and run LLVM opt -O3