summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2020-02-06 10:52:44 +0100
committerJürg Billeter <j@bitron.ch>2020-02-11 21:08:59 +0100
commit6fd63ac7e6a4de89e6872109e9ea81ffc5753e3f (patch)
treefa19557c4c2eff6161943a8bd97c1d8cf7f95cfb
parentee456e854dd6f356e502147cdab6178b453665c5 (diff)
downloadbuildstream-6fd63ac7e6a4de89e6872109e9ea81ffc5753e3f.tar.gz
element.py: Add MTime to output_node_properties for workspaced elements
For incremental workspace builds we need to retain file timestamps in buildtrees.
-rw-r--r--src/buildstream/element.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py
index a25528ee7..30bde25e2 100644
--- a/src/buildstream/element.py
+++ b/src/buildstream/element.py
@@ -2450,6 +2450,11 @@ class Element(Plugin):
project = self._get_project()
platform = context.platform
+ if self._get_workspace():
+ output_node_properties = ["MTime"]
+ else:
+ output_node_properties = None
+
if directory is not None and allow_remote and self.__use_remote_execution():
if not self.BST_VIRTUAL_DIRECTORY:
@@ -2476,6 +2481,7 @@ class Element(Plugin):
bare_directory=bare_directory,
allow_real_directory=False,
output_files_required=output_files_required,
+ output_node_properties=output_node_properties,
)
yield sandbox
@@ -2491,6 +2497,7 @@ class Element(Plugin):
config=config,
bare_directory=bare_directory,
allow_real_directory=not self.BST_VIRTUAL_DIRECTORY,
+ output_node_properties=output_node_properties,
)
yield sandbox