OSDN Git Service

gn build: Sort sync script output
authorNico Weber <nicolasweber@gmx.de>
Sun, 7 Jul 2019 16:40:29 +0000 (16:40 +0000)
committerNico Weber <nicolasweber@gmx.de>
Sun, 7 Jul 2019 16:40:29 +0000 (16:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365278 91177308-0d34-0410-b5e6-96231b3b80d8

utils/gn/build/sync_source_lists_from_cmake.py

index 76dc5de..fd1e695 100755 (executable)
@@ -51,10 +51,10 @@ def sync_source_lists():
 
         changed = True
         print(gn_file)
-        add = cmake_cpp - gn_cpp
+        add = sorted(cmake_cpp - gn_cpp)
         if add:
             print('add:\n' + '\n'.join('    "%s",' % a for a in add))
-        remove = gn_cpp - cmake_cpp
+        remove = sorted(gn_cpp - cmake_cpp)
         if remove:
             print('remove:\n' + '\n'.join(remove))
         print()