modify build process to support all targets

my goal is to facillitate a wide range of disassembly capability through
llvm disassemblers, so supporting as many machine targets as possible is ideal.
This commit is contained in:
anthony cantor 2013-08-11 15:11:04 -06:00 • committed by Siu Kwan Lam
commit ef59848d18
4 changed files with 8 additions and 6 deletions

View file

@ -31,7 +31,7 @@ components = ['core', 'analysis', 'scalaropts',
'interpreter', 'bitreader', 'interpreter', 'bitreader',
'bitwriter', 'instrumentation', 'ipa', 'bitwriter', 'instrumentation', 'ipa',
'ipo', 'transformutils', 'asmparser', 'ipo', 'transformutils', 'asmparser',
'linker', 'support', 'vectorize', 'linker', 'support', 'vectorize', 'all-targets'
] ]
nvptx = ['nvptx', nvptx = ['nvptx',

View file

@ -66,3 +66,5 @@ class TargetRegistry:
PyObjectPtr, # const Target* PyObjectPtr, # const Target*
PyObjectPtr, # std::string &Error PyObjectPtr, # std::string &Error
) )

View file

@ -14,10 +14,10 @@ InitializeNativeTargetAsmParser = llvm.Function(
InitializeNativeTargetDisassembler = llvm.Function( InitializeNativeTargetDisassembler = llvm.Function(
'InitializeNativeTargetDisassembler', cast(Bool, bool)) 'InitializeNativeTargetDisassembler', cast(Bool, bool))
#InitializeAllTargets = llvm.Function('InitializeAllTargets') InitializeAllTargets = llvm.Function('InitializeAllTargets')
#InitializeAllTargetInfos = llvm.Function('InitializeAllTargetInfos') InitializeAllTargetInfos = llvm.Function('InitializeAllTargetInfos')
#InitializeAllTargetMCs = llvm.Function('InitializeAllTargetMCs') InitializeAllTargetMCs = llvm.Function('InitializeAllTargetMCs')
#InitializeAllAsmPrinters = llvm.Function('InitializeAllAsmPrinters') InitializeAllAsmPrinters = llvm.Function('InitializeAllAsmPrinters')
for target in TARGETS_BUILT: for target in TARGETS_BUILT:
decls = 'Target', 'TargetInfo', 'TargetMC', 'AsmPrinter' decls = 'Target', 'TargetInfo', 'TargetMC', 'AsmPrinter'

View file

@ -128,7 +128,7 @@ else:
['core', 'analysis', 'scalaropts', 'executionengine', 'mcjit', ['core', 'analysis', 'scalaropts', 'executionengine', 'mcjit',
'jit', 'native', 'interpreter', 'bitreader', 'bitwriter', 'jit', 'native', 'interpreter', 'bitreader', 'bitwriter',
'instrumentation', 'ipa', 'ipo', 'transformutils', 'instrumentation', 'ipa', 'ipo', 'transformutils',
'asmparser', 'linker', 'support', 'vectorize'] 'asmparser', 'linker', 'support', 'vectorize', 'all-targets']
+ extra_components) + extra_components)
if sys.platform == 'win32': if sys.platform == 'win32':