Skip to content

Commit 088566b

Browse files
committed
Correctly casting toolchain features to a set.
Before, the get_config function was checking the equality of a set and a list. However the list's equality depends on order, so this change casts it to set to prevent an infinite loop.
1 parent fa88776 commit 088566b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/build_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def get_config(src_paths, target, toolchain_name):
134134
toolchain.config.add_config_files(resources.json_files)
135135

136136
# Add features while we find new ones
137-
features = toolchain.config.get_features()
137+
features = set(toolchain.config.get_features())
138138
if features == prev_features:
139139
break
140140

0 commit comments

Comments
 (0)