mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
[gn build] Do not sync filenames containing variable references
This commit is contained in:
parent
f161c48716
commit
9376a275d8
@ -61,10 +61,10 @@ def sync_source_lists(write):
|
||||
gn_files = git_out(['ls-files', '*BUILD.gn']).splitlines()
|
||||
|
||||
# Matches e.g. | "foo.cpp",|, captures |foo| in group 1.
|
||||
gn_cpp_re = re.compile(r'^\s*"([^"]+\.(?:cpp|c|h|S))",$', re.MULTILINE)
|
||||
gn_cpp_re = re.compile(r'^\s*"([^$"]+\.(?:cpp|c|h|S))",$', re.MULTILINE)
|
||||
# Matches e.g. | bar_sources = [ "foo.cpp" ]|, captures |foo| in group 1.
|
||||
gn_cpp_re2 = re.compile(
|
||||
r'^\s*(?:.*_)?sources \+?= \[ "([^"]+\.(?:cpp|c|h|S))" ]$',
|
||||
r'^\s*(?:.*_)?sources \+?= \[ "([^$"]+\.(?:cpp|c|h|S))" ]$',
|
||||
re.MULTILINE)
|
||||
# Matches e.g. | foo.cpp|, captures |foo| in group 1.
|
||||
cmake_cpp_re = re.compile(r'^\s*([A-Za-z_0-9./-]+\.(?:cpp|c|h|S))$',
|
||||
|
Loading…
Reference in New Issue
Block a user