Index: llvm/utils/gn/build/sync_source_lists_from_cmake.py =================================================================== --- llvm/utils/gn/build/sync_source_lists_from_cmake.py +++ llvm/utils/gn/build/sync_source_lists_from_cmake.py @@ -18,8 +18,8 @@ def sync_source_lists(): - gn_files = subprocess.check_output( - ['git', 'ls-files', '*BUILD.gn']).splitlines() + gn_files = subprocess.check_output(['git', 'ls-files', '*BUILD.gn'], + shell=os.name == 'nt').splitlines() # Matches e.g. | "foo.cpp",|, captures |foo| in group 1. gn_cpp_re = re.compile(r'^\s*"([^"]+\.(?:cpp|h))",$', re.MULTILINE)