1
0
Fork 0

Ensure LTO is enabled as a info.json build config option (#22932)

* feature.lto -> build.lto

* keymaps too
This commit is contained in:
Joel Challis 2024-02-01 15:45:58 +00:00 committed by GitHub
parent 79020519b4
commit 3a13c2120a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 52 additions and 28 deletions

View file

@ -233,6 +233,9 @@ def _extract_features(info_data, rules):
key = '_'.join(key.split('_')[:-1]).lower()
value = True if value.lower() in true_values else False if value.lower() in false_values else value
if key in ['lto']:
continue
if 'config_h_features' not in info_data:
info_data['config_h_features'] = {}