diff options
author | Ayke van Laethem <[email protected]> | 2022-11-03 22:26:22 +0100 |
---|---|---|
committer | Ron Evans <[email protected]> | 2022-11-04 08:28:26 +0100 |
commit | 268140ae40185f2b2b79df9e0550cc4f7287692c (patch) | |
tree | d09ea9c6e8dfcb5a114c6cb3409ba6e747333fb9 /main.go | |
parent | 8906584fb976139e5d102faedbd69d9737115327 (diff) | |
download | tinygo-268140ae40185f2b2b79df9e0550cc4f7287692c.tar.gz tinygo-268140ae40185f2b2b79df9e0550cc4f7287692c.zip |
wasm: remove -wasm-abi= flag
This flag controls whether to convert external i64 parameters for use in
a browser-like environment.
This flag was needed in the past because back then we only supported
wasm on browsers but no WASI. Now, I can't think of a reason why anybody
would want to change the default. For `-target=wasm` (used for
browser-like environments), the wasm_exec.js file expects this
i64-via-stack ABI. For WASI, there is no limitation on i64 values and
`-wasm-abi=generic` is the default.
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -1392,7 +1392,6 @@ func main() { port := flag.String("port", "", "flash port (can specify multiple candidates separated by commas)") programmer := flag.String("programmer", "", "which hardware programmer to use") ldflags := flag.String("ldflags", "", "Go link tool compatible ldflags") - wasmAbi := flag.String("wasm-abi", "", "WebAssembly ABI conventions: js (no i64 params) or generic") llvmFeatures := flag.String("llvm-features", "", "comma separated LLVM features to enable") cpuprofile := flag.String("cpuprofile", "", "cpuprofile output") monitor := flag.Bool("monitor", false, "enable serial monitor") @@ -1481,7 +1480,6 @@ func main() { PrintAllocs: printAllocs, Tags: []string(tags), GlobalValues: globalVarValues, - WasmAbi: *wasmAbi, Programmer: *programmer, OpenOCDCommands: ocdCommands, LLVMFeatures: *llvmFeatures, |