diff options
author | Damian Gryski <[email protected]> | 2024-09-17 12:08:24 -0700 |
---|---|---|
committer | Ron Evans <[email protected]> | 2024-09-18 08:05:25 +0200 |
commit | 892efaec973aa7fe5442ca0f16f05f4951ac73a3 (patch) | |
tree | 7a59fe67c7d9438b4427e56795bf2cee62d8c7a4 /main.go | |
parent | 84048f299f172af5e5cd77227b1464695ed1c738 (diff) | |
download | tinygo-892efaec973aa7fe5442ca0f16f05f4951ac73a3.tar.gz tinygo-892efaec973aa7fe5442ca0f16f05f4951ac73a3.zip |
support -extldflags
Fixes #4320
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1388,6 +1388,7 @@ func main() { cpuprofile := flag.String("cpuprofile", "", "cpuprofile output") monitor := flag.Bool("monitor", false, "enable serial monitor") baudrate := flag.Int("baudrate", 115200, "baudrate of serial monitor") + extLDFlags := flag.String("extldflags", "", "additional flags to pass to external linker") // Internal flags, that are only intended for TinyGo development. printIR := flag.Bool("internal-printir", false, "print LLVM IR") @@ -1503,6 +1504,7 @@ func main() { Timeout: *timeout, WITPackage: witPackage, WITWorld: witWorld, + ExtLDFlags: *extLDFlags, } if *printCommands { options.PrintCommands = printCommand |