aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets
diff options
context:
space:
mode:
authordeadprogram <[email protected]>2024-02-12 13:43:54 +0100
committerRon Evans <[email protected]>2024-02-15 17:54:18 +0100
commit186018abebe67052ce53c610ce0eaab1bef6d24a (patch)
tree7ac5d13ceaff61158d8000bb4619c4bbead62288 /targets
parent828b9614c2f956c62f02311cc1a196a4bf1d4514 (diff)
downloadtinygo-186018abebe67052ce53c610ce0eaab1bef6d24a.tar.gz
tinygo-186018abebe67052ce53c610ce0eaab1bef6d24a.zip
runtime, targets: some WIP on wasm unknown in part from PR #3072
Signed-off-by: deadprogram <[email protected]>
Diffstat (limited to 'targets')
-rw-r--r--targets/wasm-unknown.json25
1 files changed, 25 insertions, 0 deletions
diff --git a/targets/wasm-unknown.json b/targets/wasm-unknown.json
new file mode 100644
index 000000000..3a96eb036
--- /dev/null
+++ b/targets/wasm-unknown.json
@@ -0,0 +1,25 @@
+{
+ "llvm-target": "wasm32-unknown-unknown",
+ "cpu": "generic",
+ "features": "+bulk-memory,+mutable-globals,+nontrapping-fptoint,+sign-ext",
+ "build-tags": ["tinygo.wasm", "wasm_unknown"],
+ "goos": "linux",
+ "goarch": "arm",
+ "linker": "wasm-ld",
+ "rtlib": "compiler-rt",
+ "scheduler": "none",
+ "default-stack-size": 4096,
+ "cflags": [
+ "-mbulk-memory",
+ "-mnontrapping-fptoint",
+ "-msign-ext"
+ ],
+ "ldflags": [
+ "--no-demangle",
+ "--no-entry"
+ ],
+ "extra-files": [
+ "src/runtime/asm_tinygowasm.S"
+ ],
+ "emulator": "wasmtime --dir={tmpDir}::/tmp {}"
+}