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

Steve Scalpone via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Jul 22 12:59:15 PDT 2020


sscalpone accepted this revision.
sscalpone added inline comments.


================
Comment at: flang/tools/f18/f18.cpp:410
   Fortran::parser::Options options;
-  options.predefinitions.emplace_back("__F18", "1");
-  options.predefinitions.emplace_back("__F18_MAJOR__", "1");
-  options.predefinitions.emplace_back("__F18_MINOR__", "1");
-  options.predefinitions.emplace_back("__F18_PATCHLEVEL__", "1");
+  options.predefinitions.emplace_back("__F18", "12.0.0");
+  options.predefinitions.emplace_back("__F18_MAJOR__", "12");
----------------
Cmake has the capability to generate files, usually taking a "foo.in" and creating a "foo" with macro substitution.  Is that technique possible for the version numbers?  


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

https://reviews.llvm.org/D84334





More information about the flang-commits mailing list