[gn build] sync script: try to make a loop clearer
authorNico Weber <thakis@chromium.org>
Thu, 26 Nov 2020 02:11:50 +0000 (21:11 -0500)
committerNico Weber <thakis@chromium.org>
Thu, 26 Nov 2020 02:16:22 +0000 (21:16 -0500)
commit43afba0677d4630ee6a35308a4b227144b8f1d42
treea725d51955c6eca4726e6616ee4d9db694b94e1d
parent12c2646feb10c3aa14f590bcf9f5a3f9fc7b41b7
[gn build] sync script: try to make a loop clearer

We want to find 'sources = [', but only if it's not the prefix
of 'sources = []' -- we're looking for a non-empty list.

No behavior change.
llvm/utils/gn/build/sync_source_lists_from_cmake.py