aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets
diff options
context:
space:
mode:
authordeadprogram <[email protected]>2024-02-15 14:33:24 +0100
committerRon Evans <[email protected]>2024-02-15 17:54:18 +0100
commit5879d785a986ab980f96ec2acadea8465d5fb51a (patch)
treedd5b39182580676e296cc28f011ee4d03ac94ebc /targets
parent186018abebe67052ce53c610ce0eaab1bef6d24a (diff)
downloadtinygo-5879d785a986ab980f96ec2acadea8465d5fb51a.tar.gz
tinygo-5879d785a986ab980f96ec2acadea8465d5fb51a.zip
target/wasm_unknown: remove bulk memory and use imported memory for extreme tinyness
Signed-off-by: deadprogram <[email protected]>
Diffstat (limited to 'targets')
-rw-r--r--targets/wasm-unknown.json7
1 files changed, 4 insertions, 3 deletions
diff --git a/targets/wasm-unknown.json b/targets/wasm-unknown.json
index 3a96eb036..aefc6047e 100644
--- a/targets/wasm-unknown.json
+++ b/targets/wasm-unknown.json
@@ -1,7 +1,7 @@
{
"llvm-target": "wasm32-unknown-unknown",
"cpu": "generic",
- "features": "+bulk-memory,+mutable-globals,+nontrapping-fptoint,+sign-ext",
+ "features": "+mutable-globals,+nontrapping-fptoint,+sign-ext",
"build-tags": ["tinygo.wasm", "wasm_unknown"],
"goos": "linux",
"goarch": "arm",
@@ -10,13 +10,14 @@
"scheduler": "none",
"default-stack-size": 4096,
"cflags": [
- "-mbulk-memory",
+ "-mno-bulk-memory",
"-mnontrapping-fptoint",
"-msign-ext"
],
"ldflags": [
"--no-demangle",
- "--no-entry"
+ "--no-entry",
+ "--import-memory"
],
"extra-files": [
"src/runtime/asm_tinygowasm.S"