[llvm] b6902d9 - [gn build] Make syncing to single-line source files work after 1afd889d0b43
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 27 09:45:42 PDT 2020
Author: Nico Weber
Date: 2020-07-27T12:44:47-04:00
New Revision: b6902d977ac07ad093655230dcee0a7d920e47b7
URL: https://github.com/llvm/llvm-project/commit/b6902d977ac07ad093655230dcee0a7d920e47b7
DIFF: https://github.com/llvm/llvm-project/commit/b6902d977ac07ad093655230dcee0a7d920e47b7.diff
LOG: [gn build] Make syncing to single-line source files work after 1afd889d0b43
Added:
Modified:
llvm/utils/gn/build/sync_source_lists_from_cmake.py
Removed:
################################################################################
diff --git a/llvm/utils/gn/build/sync_source_lists_from_cmake.py b/llvm/utils/gn/build/sync_source_lists_from_cmake.py
index b88b3b800771..e0c550ed7085 100755
--- a/llvm/utils/gn/build/sync_source_lists_from_cmake.py
+++ b/llvm/utils/gn/build/sync_source_lists_from_cmake.py
@@ -27,7 +27,7 @@ def patch_gn_file(gn_file, add, remove):
with open(gn_file) as f:
gn_contents = f.read()
- srcs_tok = 'sources = [\n'
+ srcs_tok = 'sources = ['
tokloc = gn_contents.find(srcs_tok)
if tokloc == -1: raise ValueError(gn_file + ': Failed to find source list')
More information about the llvm-commits
mailing list