aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2018-11-25 18:06:22 +0100
committerAyke van Laethem <[email protected]>2018-12-10 15:38:02 +0100
commit8ee32672604ee424109ebae786f778327c0ac3e3 (patch)
treeb4af185f39721ad3775a9af5716224d8b26d9782 /targets
parentdea660b21c9dff3122d975028a167c9998e3cc3f (diff)
downloadtinygo-8ee32672604ee424109ebae786f778327c0ac3e3.tar.gz
tinygo-8ee32672604ee424109ebae786f778327c0ac3e3.zip
wasm: compile .c files in packages
Diffstat (limited to 'targets')
-rw-r--r--targets/wasm.json5
1 files changed, 5 insertions, 0 deletions
diff --git a/targets/wasm.json b/targets/wasm.json
index b8bb00e12..f24ec68ea 100644
--- a/targets/wasm.json
+++ b/targets/wasm.json
@@ -1,7 +1,12 @@
{
"llvm-target": "wasm32-unknown-unknown-wasm",
"build-tags": ["js", "wasm"],
+ "compiler": "clang-7",
"linker": "ld.lld-7",
+ "cflags": [
+ "--target=wasm32",
+ "-Oz"
+ ],
"ldflags": [
"-flavor", "wasm",
"-allow-undefined"