[gn build] minor tweaks to sync script
authorNico Weber <thakis@chromium.org>
Tue, 31 Mar 2020 02:07:23 +0000 (22:07 -0400)
committerNico Weber <thakis@chromium.org>
Tue, 31 Mar 2020 02:07:23 +0000 (22:07 -0400)
commit4ce375a8f2eed73832b6384cd1ea0b33606db6fe
tree5603746a9864da33cda29f1490d355382ccdc683
parentc26a352f239ee71a77f3ae09a4c738eee164d738
[gn build] minor tweaks to sync script

- only complain about duplicate 'sources' lines if they contain
  more than 1 elements each (before, 0 and 1 element lists were
  counted too). In practice, this only has an effect for
  clang/lib/Headers/BUILD.gn

- make the '# NOSORT' diag actually work. This too only affects
  clang/lib/Headers/BUILD.gn.

In aggregate, changes to clang/lib/Headers/BUILD.gn still can't
be auto-merged, but for a slighly better reason.
llvm/utils/gn/build/sync_source_lists_from_cmake.py