python/build/boost.py: touch boost/version.hpp to avoid reinstalling all the time

This commit is contained in:
Max Kellermann 2021-04-07 10:14:58 +02:00
parent 6dfebf7df9
commit 1dc71f383a
1 changed files with 5 additions and 0 deletions

View File

@ -21,3 +21,8 @@ class BoostProject(Project):
dest = os.path.join(includedir, 'boost')
shutil.rmtree(dest, ignore_errors=True)
shutil.copytree(os.path.join(src, 'boost'), dest)
# touch the boost/version.hpp file to ensure it's newer than
# the downloaded Boost tarball, to avoid reinstalling Boost on
# every run
os.utime(os.path.join(toolchain.install_prefix, self.installed))