summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-01-27 23:13:23 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-01-27 23:13:23 +0900
commit8b6e9783167fe0deaa362e9b54f151f8c9f164ec (patch)
tree7ff28d82a38ff614ccbe0932098420a7a0f61cfc
parent2dd8b25d26a86a5498e5613a95d8c804d989beb4 (diff)
downloadbuildstream-8b6e9783167fe0deaa362e9b54f151f8c9f164ec.tar.gz
cmake.yaml: Implement max-jobs with MAKEFLAGS
-rw-r--r--buildstream/plugins/elements/cmake.yaml11
1 files changed, 11 insertions, 0 deletions
diff --git a/buildstream/plugins/elements/cmake.yaml b/buildstream/plugins/elements/cmake.yaml
index 64174fb65..7d2a3f72e 100644
--- a/buildstream/plugins/elements/cmake.yaml
+++ b/buildstream/plugins/elements/cmake.yaml
@@ -34,3 +34,14 @@ config:
strip-commands:
- |
%{strip-binaries}
+
+# Use max-jobs CPUs for building and enable verbosity
+environment:
+ MAKEFLAGS: -j%{max-jobs}
+ V: 1
+
+# And dont consider MAKEFLAGS or V as something which may
+# effect build output.
+environment-nocache:
+- MAKEFLAGS
+- V