Skip to content

Commit

Permalink
build-binutils.py: Simplify create_targets a bit
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 c18e269 commit 6c49b7a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions build-binutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,17 @@ def create_targets(targets):
"powerpc": "powerpc-linux-gnu",
"x86_64": "x86_64-linux-gnu"
}
targets_list = []

if len(targets) == 1 and targets[0] == "all":
targets_list = list(targets_dict.values())
else:
for target in targets:
if target == "host":
key = host_arch_target()
else:
key = target_arch(target)
targets_list.append(targets_dict[key])
return list(targets_dict.values())

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

return targets_list

Expand Down

0 comments on commit 6c49b7a

Please sign in to comment.