diff options
-rw-r--r-- | buildstream/_project.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/buildstream/_project.py b/buildstream/_project.py index 279966da9..fc8fa06f9 100644 --- a/buildstream/_project.py +++ b/buildstream/_project.py @@ -233,6 +233,9 @@ class Project(): # Load base variables self._variables = _yaml.node_get(config, Mapping, 'variables') + # Add the project name as a default variable + self._variables['project-name'] = self.name + # Extend variables with automatic variables and option exports self._variables['max-jobs'] = multiprocessing.cpu_count() |