Skip to content

Commit

Permalink
Fix one bug of generate target board
Browse files Browse the repository at this point in the history
The default value of subarray is the length, thus we should
take `idx` instead of `idx - 1` here.

Signed-off-by: Pan Li <[email protected]>
  • Loading branch information
Incarnation-p-lee authored and cmuellner committed Dec 13, 2023
1 parent ae9efcc commit 99e2d2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate_target_board
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def main(argv):
one_target_board = generate_one_target_board(extra_test, "", options)
target_board_list.append(one_target_board)
else:
arch_abi = extra_test[:idx - 1]
arch_abi = extra_test[:idx]
flags = extra_test[idx + 1:]

for flag in flags.split(","):
Expand Down

0 comments on commit 99e2d2b

Please sign in to comment.