diff options
Diffstat (limited to 'buildstream/plugins/elements/qmake.py')
-rw-r--r-- | buildstream/plugins/elements/qmake.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/buildstream/plugins/elements/qmake.py b/buildstream/plugins/elements/qmake.py index d6776b0b2..1bb5fd74a 100644 --- a/buildstream/plugins/elements/qmake.py +++ b/buildstream/plugins/elements/qmake.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 'qmake' kind. @@ -39,6 +39,12 @@ class QMakeElement(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(): |