summaryrefslogtreecommitdiff
path: root/buildstream/plugins/elements/makemaker.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/plugins/elements/makemaker.py')
-rw-r--r--buildstream/plugins/elements/makemaker.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/buildstream/plugins/elements/makemaker.py b/buildstream/plugins/elements/makemaker.py
index 17deb66d4..c3161581a 100644
--- a/buildstream/plugins/elements/makemaker.py
+++ b/buildstream/plugins/elements/makemaker.py
@@ -31,7 +31,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 'makemaker' kind.
@@ -39,6 +39,12 @@ class MakeMakerElement(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():