aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/environment.py
diff options
context:
space:
mode:
authorElliott Sales de Andrade <quantum.analyst@gmail.com>2017-11-05 16:33:27 -0500
committerJussi Pakkanen <jpakkane@gmail.com>2017-11-06 20:56:53 +0200
commit671508759821f56a5bc1b4c2d7bb2f71e9d36033 (patch)
tree05c8d8e9e63edb9756c456a9dc5c6df7baecb8bd /mesonbuild/environment.py
parentc647db96d5fc57fdcd856c629dd3de341eecec42 (diff)
downloadmeson-671508759821f56a5bc1b4c2d7bb2f71e9d36033.zip
meson-671508759821f56a5bc1b4c2d7bb2f71e9d36033.tar.gz
meson-671508759821f56a5bc1b4c2d7bb2f71e9d36033.tar.bz2
Dump coredata earlier.
Unfortunately, `time.time` and file timestamps are not guaranteed to be in sync and due to various kernel caches may be different enough to cause rebuilds to fail [1]. This was masked by older ninja versions that could not read sub-second timestamps. [1] https://travis-ci.org/mesonbuild/meson/jobs/296797872
Diffstat (limited to 'mesonbuild/environment.py')
-rw-r--r--mesonbuild/environment.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
index a746cab..7f07c8d 100644
--- a/mesonbuild/environment.py
+++ b/mesonbuild/environment.py
@@ -349,10 +349,9 @@ class Environment:
def is_cross_build(self):
return self.cross_info is not None
- def dump_coredata(self, mtime):
+ def dump_coredata(self):
cdf = os.path.join(self.get_build_dir(), Environment.coredata_file)
coredata.save(self.coredata, cdf)
- os.utime(cdf, times=(mtime, mtime))
return cdf
def get_script_dir(self):