Bug 1467319 - Generate fewer redundant conditions when generating moz.build files fron gn configs. r=mshal

MozReview-Commit-ID: Ef67haFgx3A

--HG--
extra : rebase_source : b71a870aa4d838cd0230ed07819cf3f3ced5d1d4
This commit is contained in:
Chris Manchester 2018-06-06 17:36:45 -07:00
Родитель 707810c078
Коммит 764fa9ac29
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -439,7 +439,10 @@ def write_mozbuild(config, srcdir, output, non_unified_sources, gn_config_files,
# for every configuration, then factor by other potentially useful
# combinations.
for attrs in ((),
('MOZ_DEBUG',), ('OS_TARGET',), ('MOZ_DEBUG', 'OS_TARGET',),
('MOZ_DEBUG',), ('OS_TARGET',), ('CPU_ARCH',),
('MOZ_DEBUG', 'OS_TARGET',),
('OS_TARGET', 'CPU_ARCH'),
('OS_TARGET', 'CPU_ARCH', 'MOZ_DEBUG'),
('MOZ_DEBUG', 'OS_TARGET', 'CPU_ARCH', 'HOST_CPU_ARCH')):
conditions = set()
for args in all_args: