Skip to content

Commit

Permalink
build-binutils.py: Make targets list a set initially in create_targets
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
  • Loading branch information
nathanchance committed Apr 22, 2019
1 parent 6c49b7a commit aff3e18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build-binutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ def create_targets(targets):
if len(targets) == 1 and targets[0] == "all":
return list(targets_dict.values())

targets_list = []
targets_set = set()
for target in targets:
if target == "host":
key = host_arch_target()
else:
key = target_arch(target)
targets_list.append(targets_dict[key])
targets_set.add(targets_dict[key])

return targets_list
return list(targets_set)


def cleanup(build_folder):
Expand Down

0 comments on commit aff3e18

Please sign in to comment.