[flang-commits] [PATCH] D84334: [flang] Version information in flang/f18

Steve Scalpone via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Aug 5 08:39:27 PDT 2020


sscalpone added a comment.

Here are the clang definitions:

% clang -E -dM -x c /dev/null | grep clang
#define __clang__ 1
#define __clang_major__ 12
#define __clang_minor__ 0
#define __clang_patchlevel__ 0
#define __clang_version__ "12.0.0 (ssh://git@gitlab-master.nvidia.com:12051/fortran/fir-dev-mirror.git 36a44dbf0b4e55917b70fbf209d8c992249e651b)"



================
Comment at: flang/tools/f18/f18.cpp:392
+int printVersion(){
+  llvm::errs() << "\nf18 compiler (under development)\n";
+  return exitStatus;
----------------
AlexisPerry wrote:
> If we adopt @richard.barton.arm's proposal, I think it would be a good idea to make use of the `__flang_version__` macro here so that the output actually prints the version number.
Perhaps the message could be "flang front end" ?


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

https://reviews.llvm.org/D84334



More information about the flang-commits mailing list