[PATCH] D94422: [flang][driver] Unify f18_version.h.in and Version.inc.in

Andrzej Warzynski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 11 08:37:06 PST 2021


awarzynski created this revision.
Herald added a subscriber: mgorny.
Herald added a reviewer: sscalpone.
awarzynski requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Flang has two CMake configurable header files that define compiler
version numbers:

- f18_version.h.in - only used in f18.cpp (uses version numbers from LLVM's macro definitions)
- Version.inc.in - not currently used (uses version numbers hard-coded in Flang's top CMake script)

Currently only f18_version.h.in provides version numbers consistent with
other subprojects in llvm-project. However, its location and name is
inconsistent with other subprojects (e.g. Clang). This patch merges the
two headers together:

- hard-coded version numbers in Flang's top CMake script are deleted
- Version.inc.in is updated to provide string versions of version numbers (required by f18.cpp)
- f18_version.h.in is deleted as it's no longer needed


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94422

Files:
  flang/CMakeLists.txt
  flang/include/flang/Version.inc.in
  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: D94422.315818.patch
Type: text/x-patch
Size: 3914 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210111/4ab468ba/attachment.bin>


More information about the llvm-commits mailing list