From fa0b9ea188eb4038eb3ad378b56f7cc695b69066 Mon Sep 17 00:00:00 2001 From: Umberto Valleriani Date: Thu, 24 Aug 2023 08:49:03 +0200 Subject: [PATCH] add `--target=ARCH` in addition to `-target ARCH` --- shared/parser.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shared/parser.go b/shared/parser.go index 0fdf682..5b691fa 100644 --- a/shared/parser.go +++ b/shared/parser.go @@ -402,6 +402,8 @@ func Parse(argList []string) ParserResult { {`^.+\.(o|lo|So|so|po|a|dylib|pico|nossppico)$`, flagInfo{0, pr.objectFileCallback}}, //iam: pico and nossppico are FreeBSD {`^.+\.dylib(\.\d)+$`, flagInfo{0, pr.objectFileCallback}}, {`^.+\.(So|so)(\.\d)+$`, flagInfo{0, pr.objectFileCallback}}, + + {`^--target=.+$`, flagInfo{0, pr.compileLinkUnaryCallback}}, } for len(argList) > 0 {