Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
buildstream
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
BuildStream
buildstream
Commits
c05eec40
Commit
c05eec40
authored
7 years ago
by
Tristan Van Berkom
Browse files
Options
Downloads
Patches
Plain Diff
context.py: Removing arches
parent
b7e9a642
No related branches found
No related tags found
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
buildstream/context.py
+2
-11
2 additions, 11 deletions
buildstream/context.py
with
2 additions
and
11 deletions
buildstream/context.py
+
2
−
11
View file @
c05eec40
...
...
@@ -48,17 +48,11 @@ class Context():
Context of how BuildStream was invoked
"""
def
__init__
(
self
,
cli_options
,
host_arch
,
target_arch
=
None
):
def
__init__
(
self
,
cli_options
):
self
.
config_origin
=
None
"""
Filename indicating which configuration file was used, or None for the defaults
"""
self
.
host_arch
=
host_arch
"""
The desired architecture on which to run the build
"""
self
.
target_arch
=
target_arch
or
host_arch
"""
The machine on which the results of the build should execute
"""
self
.
strict_build_plan
=
None
"""
Whether elements must be rebuilt when their dependencies have changed
"""
...
...
@@ -273,10 +267,7 @@ class Context():
if
self
.
_cache_key
is
None
:
# Anything that alters the build goes into the unique key
self
.
_cache_key
=
utils
.
_generate_key
({
'
host-arch
'
:
self
.
host_arch
,
'
target-arch
'
:
self
.
target_arch
})
self
.
_cache_key
=
utils
.
_generate_key
({})
return
self
.
_cache_key
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment