summaryrefslogtreecommitdiff
path: root/buildstream/_project.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-04-04 19:46:06 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-04-05 15:35:20 +0900
commit8c8b1c541baa905c53fb31244739dad710a1ae99 (patch)
tree121acdf3bc6d18c00bfb2d718aa4745b79711be6 /buildstream/_project.py
parentcc43127e3876d865037eeea5ab3d9ccd83251b9e (diff)
downloadbuildstream-8c8b1c541baa905c53fb31244739dad710a1ae99.tar.gz
_options package: Adhere to policy on private symbols
This also adds a couple of methods to OptionPool to avoid exposing some internals to other parts of the codebase, and calls those new methods from _project.py and _frontend/widget.py This is a part of issue #285
Diffstat (limited to 'buildstream/_project.py')
-rw-r--r--buildstream/_project.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/buildstream/_project.py b/buildstream/_project.py
index f4a7244fc..cf3c59fef 100644
--- a/buildstream/_project.py
+++ b/buildstream/_project.py
@@ -355,9 +355,7 @@ class Project():
self.base_variables['max-jobs'] = str(multiprocessing.cpu_count())
# Export options into variables, if that was requested
- for _, option in self.options.options.items():
- if option.variable:
- self.base_variables[option.variable] = option.get_value()
+ self.options.export_variables(self.base_variables)
# Load sandbox environment variables
self.base_environment = _yaml.node_get(config, Mapping, 'environment')