aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/main.go b/main.go
index 254e140cf..8ae5ce316 100644
--- a/main.go
+++ b/main.go
@@ -1641,12 +1641,19 @@ func main() {
Timeout: *timeout,
WITPackage: witPackage,
WITWorld: witWorld,
- ExtLDFlags: extLDFlags,
}
if *printCommands {
options.PrintCommands = printCommand
}
+ if extLDFlags != "" {
+ options.ExtLDFlags, err = shlex.Split(extLDFlags)
+ if err != nil {
+ fmt.Fprintln(os.Stderr, "could not parse -extldflags:", err)
+ os.Exit(1)
+ }
+ }
+
err = options.Verify()
if err != nil {
fmt.Fprintln(os.Stderr, err.Error())