summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <sunfish@mozilla.com>2018-01-15 13:35:42 -0800
committerAlon Zakai <alonzakai@gmail.com>2018-01-15 13:35:42 -0800
commit3d8358f8e10a01869ef59189539ab1d17d52cb10 (patch)
tree60f32a061204f12d6c5dad79edeafbe754e7e5e4
parentd4de67daab18a320ee78a05d27c6d5612d1c73fd (diff)
downloadbinaryen-3d8358f8e10a01869ef59189539ab1d17d52cb10.tar.gz
binaryen-3d8358f8e10a01869ef59189539ab1d17d52cb10.tar.bz2
binaryen-3d8358f8e10a01869ef59189539ab1d17d52cb10.zip
Make the triple explicit in the llc command-line in the README. (#1361)
s2wasm currently depends on the wasm32-unknown-unknown-elf triple. Depend on it explicitly, rather than relying on it being the default.
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 36633ae9a..957539f9a 100644
--- a/README.md
+++ b/README.md
@@ -184,7 +184,7 @@ When using `emcc` with the `BINARYEN` option, it will use Binaryen to build to W
Binaryen's `s2wasm` tool can translate the `.s` output from the LLVM WebAssembly backend into WebAssembly. You can receive `.s` output from `llc`, and then run `s2wasm` on that:
```
-llc code.ll -march=wasm32 -filetype=asm -o code.s
+llc code.ll -mtriple=wasm32-unknown-unknown-elf -filetype=asm -o code.s
s2wasm code.s > code.wast
```