[cfe-dev] Command line compiler options
Edward Diener
eldlistmailingz at tropicsoft.com
Wed Jun 17 07:30:44 PDT 2015
On 6/17/2015 12:23 AM, Sean Silva wrote:
>
>
> On Tue, Jun 16, 2015 at 6:22 PM, Edward Diener
> <eldlistmailingz at tropicsoft.com
> <mailto:eldlistmailingz at tropicsoft.com>> wrote:
>
> On 6/16/2015 1:01 PM, Konstantin Tokarev wrote:
>
>
>
> 16.06.2015, 19:55, "Edward Diener"
> <eldlistmailingz at tropicsoft.com
> <mailto:eldlistmailingz at tropicsoft.com>>:
>
> For any given version of clang, including the latest, is
> there any list
> of command-line compiler options, with their meanings, which
> clang accepts ?
>
>
> clang --help
> clang -cc1 --help
> clang -cc1 -mllvm --help
>
>
> Here is the explanation from "clang --help" of the -std option:
>
> -std=<value> Language standard to compile for
>
> Incredible ! I did not realize how much vital information can be
> packed into command-line help until I read the explanation.
>
> I have used clang and it's a great compiler but if you do not want
> to be badgered by continual questions in your mailing list about how
> clang actual works when used by an end-user I would suggest that
> clang actually spend some time telling programmers how to use their
> product. The "Clang Compiler User’s Manual" is not that
> documentation if a programmer must spend hours of his time just to
> find out what the values and their meanings are which the "-std"
> option takes for any given version of clang, including the latest.
>
>
> The standard answer is to look at GCC's documentation, since you are
> using our gcc-compatible driver (or Microsoft's documentation if your
> are using our cl.exe compatible driver). Feel free to report any
> compatibility issues.
Which version of gcc ? That is my point. Even documentation saying which
version of gcc a particular version of clang's functionality is
emulating is something I have not found in any clang docs. Gcc options
do change per gcc release, as to what are acceptable values, as I am
sure you know.
More information about the cfe-dev
mailing list