@@ -39,7 +39,7 @@ Support_imports = [
39
39
'ManagedStatic' , 'MathExtras' , 'Mutex' , 'MutexGuard' , 'Memory' ,
40
40
'MemoryBuffer' , 'PointerLikeTypeTraits' , 'Recycler' , 'SwapByteOrder' ,
41
41
'Timer' , 'TimeValue' , 'Threading' , 'Unicode' , 'UniqueLock' , 'Unix' , 'WindowsError' ,
42
- 'Valgrind' , 'circular_raw_ostream' , 'raw_ostream' , 'Signposts' , 'type_traits' , 'JSON' ]
42
+ 'Valgrind' , 'circular_raw_ostream' , 'raw_ostream' , 'Signposts' , 'type_traits' , 'JSON' , 'WindowsSupport' ]
43
43
44
44
# Stuff we don't want, but have to pull in.
45
45
Support_imports += [
@@ -50,7 +50,7 @@ Support_imports += [
50
50
'FormatVariadicDetails' , 'NativeFormatting' , 'DJB' , 'ReverseIteration' , 'MD5' ,
51
51
'SmallVectorMemoryBuffer' , 'WithColor' , 'Options' , 'PrettyStackTrace' , 'Watchdog' ,
52
52
'TargetParser' , 'ARMBuildAttributes' , 'ARMTargetParser' , 'AArch64TargetParser' ,
53
- 'ARMTargetParser.def' , 'AArch64TargetParser.def' , 'X86TargetParser.def' , 'LineIterator' ]
53
+ 'ARMTargetParser.def' , 'AArch64TargetParser.def' , 'X86TargetParser.def' , 'LineIterator' , 'VersionTuple' ]
54
54
55
55
# Dependencies from llvm-c needed by Support.
56
56
C_imports = ['Types' , 'DataTypes' , 'Support' , 'Error' , 'ErrorHandling' ]
@@ -198,6 +198,17 @@ def main():
198
198
for file in files :
199
199
maybe_add_prefix (os .path .join (root , file ), include_dir )
200
200
201
+ print ("" )
202
+ print ("Copying llvm config files" )
203
+ # NOTE: If you're updating to a newer llvm, you may have to manually merge
204
+ # these with the newer version produced by the llvm build
205
+ indexstore_llvm_config_source = os .path .join (indexstoredb_srcroot , 'Utilities' , 'import-llvm.d' , 'include' , 'llvm' , 'Config' )
206
+ indexstore_llvm_config_target = os .path .join (include_dir , 'llvm' , 'Config' )
207
+ shutil .copyfile (os .path .join (indexstore_llvm_config_source , 'config.h' ),
208
+ os .path .join (indexstore_llvm_config_target , 'config.h' ))
209
+ shutil .copyfile (os .path .join (indexstore_llvm_config_source , 'llvm-config.h' ),
210
+ os .path .join (indexstore_llvm_config_target , 'llvm-config.h' ))
211
+
201
212
print ""
202
213
print "Applying patch"
203
214
0 commit comments