diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-07-29 08:18:07 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-07-29 08:18:59 +0530 |
commit | 018fa4b90f80b6d3c27583af55dd50c35e1a9359 (patch) | |
tree | 83fc24642bbe719b3994b8ab8e9f7cb7621c5346 /mesonbuild/environment.py | |
parent | 4a92b78e6e4508afb8ca988cb47c91ea4a765fee (diff) | |
download | meson-018fa4b90f80b6d3c27583af55dd50c35e1a9359.zip meson-018fa4b90f80b6d3c27583af55dd50c35e1a9359.tar.gz meson-018fa4b90f80b6d3c27583af55dd50c35e1a9359.tar.bz2 |
vs: Fix regen_checker by using the correct coredata mtime
After c01b183e5, the mtime of coredata.dat is always newer than all the
other build files, which made regen_checker think that they always had
to be regenerated. Now we set the mtime of the file to a value before
the build files are generated and that makes everything behave as it did
earlier.
Diffstat (limited to 'mesonbuild/environment.py')
-rw-r--r-- | mesonbuild/environment.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index a105cb8..74bf119 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -171,9 +171,10 @@ class Environment(): def is_cross_build(self): return self.cross_info is not None - def dump_coredata(self): + def dump_coredata(self, mtime): cdf = os.path.join(self.get_build_dir(), Environment.coredata_file) coredata.save(self.coredata, cdf) + os.utime(cdf, times=(mtime, mtime)) def get_script_dir(self): import mesonbuild.scripts |