summaryrefslogtreecommitdiff
path: root/buildstream/plugins/elements/cmake.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/plugins/elements/cmake.py')
-rw-r--r--buildstream/plugins/elements/cmake.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/buildstream/plugins/elements/cmake.py b/buildstream/plugins/elements/cmake.py
index de9aa9616..a1bea0cd6 100644
--- a/buildstream/plugins/elements/cmake.py
+++ b/buildstream/plugins/elements/cmake.py
@@ -54,7 +54,7 @@ See :ref:`built-in functionality documentation <core_buildelement_builtins>` for
details on common configuration options for build elements.
"""
-from buildstream import BuildElement
+from buildstream import BuildElement, SandboxFlags
# Element implementation for the 'cmake' kind.
@@ -62,6 +62,12 @@ class CMakeElement(BuildElement):
# Supports virtual directories (required for remote execution)
BST_VIRTUAL_DIRECTORY = True
+ # Enable command batching across prepare() and assemble()
+ def configure_sandbox(self, sandbox):
+ super().configure_sandbox(sandbox)
+ self.batch_prepare_assemble(SandboxFlags.ROOT_READ_ONLY,
+ collect=self.get_variable('install-root'))
+
# Plugin entry point
def setup():