summaryrefslogtreecommitdiffstats
path: root/scons
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2011-08-18 16:00:03 +0100
committerJosé Fonseca <[email protected]>2011-08-18 16:00:59 +0100
commit7be4cf9c63d3dcacce8a6bf47c471a9aab09b1d7 (patch)
tree90c98ef176cc22ae565ca15dc0a9cb5cce626c60 /scons
parent4a7667b96b7bd7cdffbe929182c15935b74facd2 (diff)
scons: Add support for LLVM-2.9 on Windows.
MinGW & MSVC, although I've only tested the former.
Diffstat (limited to 'scons')
-rw-r--r--scons/llvm.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/scons/llvm.py b/scons/llvm.py
index 66f972df5fb..c8d2d372e4a 100644
--- a/scons/llvm.py
+++ b/scons/llvm.py
@@ -92,7 +92,21 @@ def generate(env):
'HAVE_STDINT_H',
])
env.Prepend(LIBPATH = [os.path.join(llvm_dir, 'lib')])
- if llvm_version >= distutils.version.LooseVersion('2.7'):
+ if llvm_version >= distutils.version.LooseVersion('2.9'):
+ # 2.9
+ env.Prepend(LIBS = [
+ 'LLVMObject', 'LLVMMCJIT', 'LLVMMCDisassembler',
+ 'LLVMLinker', 'LLVMipo', 'LLVMInterpreter',
+ 'LLVMInstrumentation', 'LLVMJIT', 'LLVMExecutionEngine',
+ 'LLVMBitWriter', 'LLVMX86Disassembler', 'LLVMX86AsmParser',
+ 'LLVMMCParser', 'LLVMX86AsmPrinter', 'LLVMX86CodeGen',
+ 'LLVMSelectionDAG', 'LLVMX86Utils', 'LLVMX86Info', 'LLVMAsmPrinter',
+ 'LLVMCodeGen', 'LLVMScalarOpts', 'LLVMInstCombine',
+ 'LLVMTransformUtils', 'LLVMipa', 'LLVMAsmParser',
+ 'LLVMArchive', 'LLVMBitReader', 'LLVMAnalysis', 'LLVMTarget',
+ 'LLVMCore', 'LLVMMC', 'LLVMSupport',
+ ])
+ elif llvm_version >= distutils.version.LooseVersion('2.7'):
# 2.7
env.Prepend(LIBS = [
'LLVMLinker', 'LLVMipo', 'LLVMInterpreter',