Commit 4bb9419a authored by Yngve N. Pettersen's avatar Yngve N. Pettersen Committed by Commit Bot

Reset xtb_locales GN variable for each grd_files_info loop iteration.

If a generate_embedded_i18n target is specified with multiple
grd_files_info entries each of the entries can have different
xtb_locales configurations. However, unless the xtb_locales variable
is reset to [] before it's updated, then the GN generation will fail.

Change-Id: I40d89b5e4da66570c61e03971d534518e5a4873d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1932800
Commit-Queue: Yngve Pettersen <yngve@vivaldi.com>
Reviewed-by: default avatarBruce Dawson <brucedawson@chromium.org>
Cr-Commit-Position: refs/heads/master@{#719315}
parent 47f01018
...@@ -122,6 +122,8 @@ template("generate_embedded_i18n") { ...@@ -122,6 +122,8 @@ template("generate_embedded_i18n") {
xtb_relative_path, xtb_relative_path,
] ]
# Lists must be reset to empty before being assigned a new list
xtb_locales = []
xtb_locales = grd_file_info[3] xtb_locales = grd_file_info[3]
foreach(locale, xtb_locales) { foreach(locale, xtb_locales) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment