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

Camille Coti via Phabricator via flang-commits flang-commits at lists.llvm.org
Tue Aug 4 18:13:23 PDT 2020


coti updated this revision to Diff 283086.
coti added a comment.

Some tests for the -v flag and associated macros.

Some comments:

- I could not find a way to exploit `__flang_version__`, since it is interpreted as a string
- The version number is simply matched against a regex. I can retrieve it from cmake, similarly to what is done in f18.cpp, but I chose to keep things simple and not add anything into `flang/test/CMakeLists.txt`. What do you think?


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

https://reviews.llvm.org/D84334

Files:
  flang/test/Driver/version_test.f90
  flang/test/Preprocessing/macros.F90
  flang/tools/f18/CMakeLists.txt
  flang/tools/f18/f18.cpp
  flang/tools/f18/f18_version.h.in

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84334.283086.patch
Type: text/x-patch
Size: 5059 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20200805/bd162464/attachment.bin>


More information about the flang-commits mailing list