summaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorMarc-Antoine Ruel <maruel@gmail.com>2021-12-31 12:53:35 (GMT)
committerMarc-Antoine Ruel <maruel@gmail.com>2021-12-31 14:31:59 (GMT)
commit054ca7569a42904a11694f222da6a6db7d74da0a (patch)
tree2e06fd8b5deccfd3832b3cad0eea39881ca66103 /configure.py
parentee360022f8a4a540039bbdf7e10a0c7c586a90ce (diff)
downloadNinja-054ca7569a42904a11694f222da6a6db7d74da0a.zip
Ninja-054ca7569a42904a11694f222da6a6db7d74da0a.tar.gz
Ninja-054ca7569a42904a11694f222da6a6db7d74da0a.tar.bz2
Disable re2c from embedding the version number in the source file
The checked in sources (depfile_parser.cc and lexer.cc) have the re2c version embedded in it. The output didn't change since re2c 1.3, except for the different version number. A reproducible build would use a pinned version of re2c anyway, so there is no need to hardcode its value in the checked in generated files.
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.py b/configure.py
index e0a5a22..4390434 100755
--- a/configure.py
+++ b/configure.py
@@ -479,7 +479,7 @@ def has_re2c():
return False
if has_re2c():
n.rule('re2c',
- command='re2c -b -i --no-generation-date -o $out $in',
+ command='re2c -b -i --no-generation-date --no-version -o $out $in',
description='RE2C $out')
# Generate the .cc files in the source directory so we can check them in.
n.build(src('depfile_parser.cc'), 're2c', src('depfile_parser.in.cc'))