Also move the -mllvm option to the right section of the options list.
Details
Diff Detail
Event Timeline
MinGW/Options.td | ||
---|---|---|
34 | I would prefer we always require = after -Xlink, because -Xlink=-lldmap is easier to read and less confusing than -Xlink -lldmap on command line. |
MinGW/Options.td | ||
---|---|---|
34 | Is there any predecent for such style elsewhere? The -Xfoo -bar style is used by clang (or does that one also support -Xfoo=-bar?), and there's also the -Wl,-bar style used in the clang and gcc drivers for some things. That syntax would be a little messy here though, since you'd already need to use -Wl, to pass options from clang to the mingw linker frontend. |
MinGW/Options.td | ||
---|---|---|
34 | I don't know of any precedent of the style in compilers, but there might be in some command that takes meta-options. At least it helps me understand a command line if = is mandatory. If you feel strongly, I'm fine without = though. |
MinGW/Options.td | ||
---|---|---|
34 | I don't feel very strongly about it, so let's go with -Xlink=-foo. |
LGTM
MinGW/Options.td | ||
---|---|---|
34 | GNU ld manual says that it takes either -foo or --foo except a single letter option or an option starting with 'o' (to avoid conflict with -o). So, you want to use J instead of Joined to accept both -Xlink and --Xlink. |
I would prefer we always require = after -Xlink, because -Xlink=-lldmap is easier to read and less confusing than -Xlink -lldmap on command line.