| Index: build/gyp_chromium
|
| diff --git a/build/gyp_chromium b/build/gyp_chromium
|
| index fd162eaf0ca51fbcf621ae592fe06988548b2bdb..c6e23d3e62dc7edfd719f67a163293a71379dd78 100755
|
| --- a/build/gyp_chromium
|
| +++ b/build/gyp_chromium
|
| @@ -121,8 +121,11 @@ def GetGypVarsForGN(supplemental_files):
|
| # to ignore all arguments other than "-D".
|
| cmdline_input_items = []
|
| for i in range(len(sys.argv))[1:]:
|
| - if sys.argv[i] == '-D' and i + 1 < len(sys.argv):
|
| - cmdline_input_items += [sys.argv[i + 1]]
|
| + if sys.argv[i].startswith('-D'):
|
| + if sys.argv[i] == '-D' and i + 1 < len(sys.argv):
|
| + cmdline_input_items += [sys.argv[i + 1]]
|
| + elif len(sys.argv[i]) > 2:
|
| + cmdline_input_items += [sys.argv[i][2:]]
|
| cmdline_items = ProcessGypDefinesItems(cmdline_input_items)
|
|
|
| return dict(supp_items + env_items + cmdline_items)
|
|
|