Rename VERSION to VERSION.info to avoid conflicts with modern STL

On case-insensitive file systems (e.g., macOS), inclusion of the new
standard <version> header resulted in unexpected inclusion of VERSION
file.

Change-Id: Ie858b8966496d23f38f722d8115be988e6b4d048
This commit is contained in:
Alexander Afanasyev committed 2020-05-30 18:14:45 -04:00
1 parent f165bb4e77
commit 3de8aac22d
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -370,7 +370,7 @@ def version(ctx):
except (OSError, subprocess.CalledProcessError):
pass
versionFile = ctx.path.find_node('VERSION')
versionFile = ctx.path.find_node('VERSION.info')
if not gotVersionFromGit and versionFile is not None:
try:
Context.g_module.VERSION = versionFile.read()
@@ -387,7 +387,7 @@ def version(ctx):
except EnvironmentError as e:
Logs.warn('%s exists but is not readable (%s)' % (versionFile, e.strerror))
else:
versionFile = ctx.path.make_node('VERSION')
versionFile = ctx.path.make_node('VERSION.info')
try:
versionFile.write(Context.g_module.VERSION)