summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-09-22 13:15:56 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-10-08 17:03:36 +0900
commit66b51dfbc93b8ff8e8051cbb88ec1e035fa51da4 (patch)
tree0ba9c8bd67eb60bd45d05a3a9f67eb74d9e9598c
parentbb630e3bad7f3e441bf8266bc18c4301b505753f (diff)
downloadbuildstream-66b51dfbc93b8ff8e8051cbb88ec1e035fa51da4.tar.gz
_pipeline.py: No more target variant
-rw-r--r--buildstream/_pipeline.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/buildstream/_pipeline.py b/buildstream/_pipeline.py
index 3a72de7ed..d153335e1 100644
--- a/buildstream/_pipeline.py
+++ b/buildstream/_pipeline.py
@@ -100,7 +100,6 @@ class Planner():
# context (Context): The Context object
# project (Project): The Project object
# target (str): A bst filename relative to the project directory
-# target_variant (str): The selected variant of 'target', or None for the default
# inconsistent (bool): Whether to load the pipeline in a forcefully inconsistent state,
# this is appropriate when source tracking will run and the
# current source refs will not be the effective refs.
@@ -124,7 +123,7 @@ class Planner():
#
class Pipeline():
- def __init__(self, context, project, target, target_variant,
+ def __init__(self, context, project, target,
inconsistent=False,
rewritable=False,
load_ticker=None,
@@ -137,15 +136,13 @@ class Pipeline():
self.total_elements = 0
self.unused_workspaces = []
- loader = Loader(self.project.element_path, target, target_variant,
- context.host_arch, context.target_arch,
- list(project._list_variants()))
+ loader = Loader(self.project.element_path, target,
+ context.host_arch, context.target_arch)
meta_element = loader.load(rewritable, load_ticker)
if load_ticker:
load_ticker(None)
- # Resolve project variant now that we've decided on one
- project._resolve(loader.project_variant)
+ # Load selected platform
self.platform = Platform.get_platform(context, project)
self.artifacts = self.platform.artifactcache