Tools: extract_features.py: include !FOUND features in output

This commit is contained in:
Peter Barker 2022-09-02 17:56:15 +10:00 committed by Peter Barker
parent e8589de75e
commit de77105df6
1 changed files with 4 additions and 0 deletions

View File

@ -233,6 +233,7 @@ class ExtractFeatures(object):
symbols = self.extract_symbols_from_elf(filename)
remaining_build_options_defines = build_options_defines
for (feature_define, symbol) in self.features:
some_dict = symbols.dict_for_symbol(symbol)
# look for symbols without arguments
@ -253,6 +254,9 @@ class ExtractFeatures(object):
if some_define not in build_options_defines:
continue
print(some_define)
remaining_build_options_defines.discard(some_define)
for remaining in sorted(remaining_build_options_defines):
print("!" + remaining)
if __name__ == '__main__':