-
Notifications
You must be signed in to change notification settings - Fork 10.5k
/
Copy pathlit.local.cfg
18 lines (15 loc) · 1.03 KB
/
lit.local.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
if 'sourcekit' not in config.available_features:
config.unsupported = True
elif 'OS=linux-gnu' in config.available_features and 'LinuxDistribution=Ubuntu-14.04' in config.available_features:
config.unsupported = True
else:
sed_clean = r"grep -v 'key.hash: \"0\"'"
sed_clean += r" | sed -e 's/key.filepath: \".*[/\\\\]\\(.*\\)\\.swiftmodule\"/key.filepath: \\1.swiftmodule/g'"
sed_clean += r" | sed -e 's/key.filepath: \".*[/\\\\]\\(.*\\)\\.swift\"/key.filepath: \\1.swift/g'"
sed_clean += r" | sed -e 's/key.filepath: \".*[/\\\\]\\(.*\\)-[0-9A-Z]*\\.pcm\"/key.filepath: \\1.pcm/g'"
sed_clean += r" | sed -e 's/ file=\\\\\".*[/\\\\]\\(.*\\)\\.h\\\\\"/ file=\\1.h/g'"
sed_clean += r" | sed -e 's/key.hash: \".*\"/key.hash: <hash>/g'"
config.substitutions.append( ('%sourcekitd-test', config.sourcekitd_test) )
config.substitutions.append( ('%complete-test', config.complete_test) )
config.substitutions.append( ('%swiftlib_dir', config.swiftlib_dir) )
config.substitutions.append( ('%sed_clean', sed_clean) )