scons: Update windows llvm libraries for version 3.0.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 23 Feb 2012 11:50:42 +0000 (11:50 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 23 Feb 2012 12:29:29 +0000 (12:29 +0000)
scons/llvm.py

index 916b040b0f462eab315ad6b0ae3fd49f5b88241f..8222c5b45b171fe25557b17a695742d59bf50001 100644 (file)
@@ -92,7 +92,19 @@ def generate(env):
             'HAVE_STDINT_H',
         ])
         env.Prepend(LIBPATH = [os.path.join(llvm_dir, 'lib')])
-        if llvm_version >= distutils.version.LooseVersion('2.9'):
+        if llvm_version >= distutils.version.LooseVersion('3.0'):
+            # 3.0
+            env.Prepend(LIBS = [
+                'LLVMBitWriter', 'LLVMX86Disassembler', 'LLVMX86AsmParser',
+                'LLVMX86CodeGen', 'LLVMX86Desc', 'LLVMSelectionDAG',
+                'LLVMAsmPrinter', 'LLVMMCParser', 'LLVMX86AsmPrinter',
+                'LLVMX86Utils', 'LLVMX86Info', 'LLVMJIT',
+                'LLVMExecutionEngine', 'LLVMCodeGen', 'LLVMScalarOpts',
+                'LLVMInstCombine', 'LLVMTransformUtils', 'LLVMipa',
+                'LLVMAnalysis', 'LLVMTarget', 'LLVMMC', 'LLVMCore',
+                'LLVMSupport'
+            ])
+        elif llvm_version >= distutils.version.LooseVersion('2.9'):
             # 2.9
             env.Prepend(LIBS = [
                 'LLVMObject', 'LLVMMCJIT', 'LLVMMCDisassembler',