r231787 - Allow -target= and --target options

Chandler Carruth chandlerc at google.com
Wed Mar 11 14:27:12 PDT 2015


On Wed, Mar 11, 2015 at 2:20 PM, Renato Golin <renato.golin at linaro.org>
wrote:

> I originally disliked the change but failed to come up with a strong
> technical argument and other folks seemed all happy.
>
We should have a single unambiguous spelling for long options in the
absence of compatibility concerns with other tools.

The vastly more common prefix for these in the rest of the world is '--'.
LLVM's usage of '-' is quite strange.

I also think there is a strong technical reason to require the '=' -- it
makes the relative ordering unimportant. For any tool (such as a build
system) which builds up commandline flags, this is a huge advantage.

That was why I originally proposed we converge on the particular spelling.

 Maybe we should come up with a draft on what we want for options?
>
I don't know that we need some formal document of this kind, but if you'd
like to propose a patch for the clang internals documentation, that would
be nice.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150311/ef754cc2/attachment.html>


More information about the cfe-commits mailing list