Skip to content

Commit 4f991d0

Browse files
committed
Change unrecognised features to a warning, rather than error
Give a warning rather than error if an unrecognised feature is used. This will help compatibility when new features are added. Signed-off-by: Darryl Green <[email protected]>
1 parent 90b9736 commit 4f991d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/config/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,10 +1354,10 @@ def get_features(self):
13541354
self.cumulative_overrides['features']\
13551355
.update_target(self.target)
13561356

1357-
for feature in self.target.features:
1357+
for feature in list(self.target.features):
13581358
if feature not in ALLOWED_FEATURES:
1359-
raise ConfigException(
1360-
"Feature '%s' is not a supported feature" % feature)
1359+
print("[WARNING] Feature '%s' is not a supported feature" % feature)
1360+
self.target.features.remove(feature)
13611361

13621362
return self.target.features
13631363

0 commit comments

Comments
 (0)