add --target=ARCH in addition to -target ARCH

This commit is contained in:
Umberto Valleriani 2023-08-24 08:49:03 +02:00
parent cb1a5e6713
commit fa0b9ea188

View File

@ -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 {