From 892efaec973aa7fe5442ca0f16f05f4951ac73a3 Mon Sep 17 00:00:00 2001 From: Damian Gryski Date: Tue, 17 Sep 2024 12:08:24 -0700 Subject: support -extldflags Fixes #4320 --- main.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main.go') diff --git a/main.go b/main.go index 6109c00bf..64d022fb9 100644 --- a/main.go +++ b/main.go @@ -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 -- cgit v1.2.3