[PATCH] D64062: Remove both -dumpversion and __VERSION__

Reid Kleckner via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 11 16:21:19 PDT 2019


rnk added a comment.

In D64062#1581662 <https://reviews.llvm.org/D64062#1581662>, @sylvestre.ledru wrote:

> In D64062#1581290 <https://reviews.llvm.org/D64062#1581290>, @rnk wrote:
>
> > Perhaps we should just remove `__VERSION__` and keep `-dumpversion`.
>
>
> As you wish. clang --version seems an alternative and dumpversion never //worked// for clang. so, I don't expect software to use it for clang.


That's true, but users seem to want some programmatic way to extract the compiler version number without having to resort to sed & co, and we don't provide that right now. `-dumpversion` can easily be the name for that feature.


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64062/new/

https://reviews.llvm.org/D64062





More information about the cfe-commits mailing list