summaryrefslogtreecommitdiff
path: root/buildstream/_project.py
diff options
context:
space:
mode:
authorPhillip Smyth <phillip.smyth@codethink.co.uk>2018-11-27 15:04:27 +0000
committerPhillip Smyth <phillip.smyth@codethink.co.uk>2018-11-30 14:16:36 +0000
commitd97ef8222f155bc8e912aea7ab04457b5f054524 (patch)
tree5e875fc67924ea650bf11177e28d6a343bac5db3 /buildstream/_project.py
parent0d634c21aa8035d141414723b521b723b68f1825 (diff)
downloadbuildstream-d97ef8222f155bc8e912aea7ab04457b5f054524.tar.gz
_project.py: Check for fatal_warnings earlier
Diffstat (limited to 'buildstream/_project.py')
-rw-r--r--buildstream/_project.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/buildstream/_project.py b/buildstream/_project.py
index e91114361..52408b7e5 100644
--- a/buildstream/_project.py
+++ b/buildstream/_project.py
@@ -446,6 +446,9 @@ class Project():
self.config.options = OptionPool(self.element_path)
self.first_pass_config.options = OptionPool(self.element_path)
+ # Fatal warnings
+ self._fatal_warnings = _yaml.node_get(pre_config_node, list, 'fatal-warnings', default_value=[])
+
self.loader = Loader(self._context, self,
parent=parent_loader,
tempdir=tempdir)
@@ -506,9 +509,6 @@ class Project():
# Load project split rules
self._splits = _yaml.node_get(config, Mapping, 'split-rules')
- # Fatal warnings
- self._fatal_warnings = _yaml.node_get(config, list, 'fatal-warnings', default_value=[])
-
# Support backwards compatibility for fail-on-overlap
fail_on_overlap = _yaml.node_get(config, bool, 'fail-on-overlap', default_value=None)