fix windows build: include all LLVM static library
This commit is contained in:
parent
8034854ad4
commit
cc4e4631bd
1 changed files with 7 additions and 46 deletions
|
|
@ -2,6 +2,7 @@ import re
|
||||||
import sys
|
import sys
|
||||||
from distutils.spawn import find_executable
|
from distutils.spawn import find_executable
|
||||||
from os.path import abspath, dirname, isfile, join
|
from os.path import abspath, dirname, isfile, join
|
||||||
|
from os import listdir
|
||||||
from subprocess import Popen, PIPE
|
from subprocess import Popen, PIPE
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -39,57 +40,17 @@ def libs_options():
|
||||||
# NOTE: instead of actually looking at the components requested,
|
# NOTE: instead of actually looking at the components requested,
|
||||||
# we just print out a bunch of libs
|
# we just print out a bunch of libs
|
||||||
for lib in """
|
for lib in """
|
||||||
LLVMAnalysis
|
|
||||||
LLVMAsmParser
|
|
||||||
LLVMAsmPrinter
|
|
||||||
LLVMBitReader
|
|
||||||
LLVMBitWriter
|
|
||||||
LLVMCodeGen
|
|
||||||
LLVMCore
|
|
||||||
LLVMExecutionEngine
|
|
||||||
LLVMInstCombine
|
|
||||||
LLVMInstrumentation
|
|
||||||
LLVMInterpreter
|
|
||||||
LLVMipa
|
|
||||||
LLVMipo
|
|
||||||
LLVMJIT
|
|
||||||
LLVMMCJIT
|
|
||||||
LLVMLinker
|
|
||||||
LLVMMC
|
|
||||||
LLVMMCParser
|
|
||||||
LLVMObject
|
|
||||||
LLVMRuntimeDyld
|
|
||||||
LLVMScalarOpts
|
|
||||||
LLVMSelectionDAG
|
|
||||||
LLVMSupport
|
|
||||||
LLVMTarget
|
|
||||||
LLVMTransformUtils
|
|
||||||
LLVMVectorize
|
|
||||||
LLVMX86AsmParser
|
|
||||||
LLVMX86AsmPrinter
|
|
||||||
LLVMX86CodeGen
|
|
||||||
LLVMX86Desc
|
|
||||||
LLVMX86Disassembler
|
|
||||||
LLVMX86Info
|
|
||||||
LLVMX86Utils
|
|
||||||
LLVMDebugInfo
|
|
||||||
Advapi32
|
Advapi32
|
||||||
Shell32
|
Shell32
|
||||||
""".split():
|
""".split():
|
||||||
print('-l%s' % lib)
|
print('-l%s' % lib)
|
||||||
|
|
||||||
if isfile(join(find_llvm_prefix(), 'lib', 'LLVMPTXCodeGen.lib')):
|
bpath = join(find_llvm_prefix(), 'lib')
|
||||||
print('-lLLVMPTXAsmPrinter')
|
for filename in listdir(bpath):
|
||||||
print('-lLLVMPTXCodeGen')
|
filepath = join(bpath, filename)
|
||||||
print('-lLLVMPTXDesc')
|
if isfile(filepath) and filename.endswith('.lib') and filename.startswith('LLVM'):
|
||||||
print('-lLLVMPTXInfo')
|
name = filename.split('.', 1)[0]
|
||||||
|
print('-l%s' % name)
|
||||||
elif isfile(join(find_llvm_prefix(), 'lib', 'LLVMNVPTXCodeGen.lib')):
|
|
||||||
print('-lLLVMNVPTXAsmPrinter')
|
|
||||||
print('-lLLVMNVPTXCodeGen')
|
|
||||||
print('-lLLVMNVPTXDesc')
|
|
||||||
print('-lLLVMNVPTXInfo')
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue