[PATCH] D33900: Print registered targets in clang's version information

Hans Wennborg via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 25 09:33:39 PDT 2017


hans added a comment.

In https://reviews.llvm.org/D33900#819237, @dim wrote:

> Also note that it is only added to the `--version` output, not the `-v` output (the former is really a "verbose" version of the latter):


Which seems to be the opposite of what gcc does (`gcc -v` is more verbose than `gcc --version`.)

  $ gcc --version
  gcc (GCC) 4.9.0 20140318 (experimental)
  Copyright (C) 2014 Free Software Foundation, Inc.
  This is free software; see the source for copying conditions.  There is NO
  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



  $ gcc -v
  Using built-in specs.
  COLLECT_GCC=gcc
  COLLECT_LTO_WRAPPER=/usr/local/google/work/gcc482prefix/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper
  Target: x86_64-unknown-linux-gnu
  Configured with: ../configure --prefix=/work/gcc482prefix --enable-languages=c,c++ --enable-checking=release
  Thread model: posix
  gcc version 4.9.0 20140318 (experimental) (GCC)



In https://reviews.llvm.org/D33900#818968, @mehdi_amini wrote:

> I think @thakis is right: this too verbose to be the default --version.
>  We likely shouldn't ship this in clang-5.0 (@hans).


Let me know if you figure out a solution here and I'll merge it.


https://reviews.llvm.org/D33900





More information about the cfe-commits mailing list