aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm/lp_bld_init.c
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2014-09-03 11:36:34 +0900
committerTom Stellard <[email protected]>2014-09-03 09:15:01 -0700
commit58b386dce435d2d82c2dc80b1a8d1373bb3e0ac6 (patch)
tree5ee49af491cf6ab0a70ddbc65a1397221cc42a62 /src/gallium/auxiliary/gallivm/lp_bld_init.c
parent8abdc3c4a9c81e359d5dc1694253b05dd5562c95 (diff)
gallivm: Fix build against LLVM SVN >= r216982
Only MCJIT is available anymore. Reviewed-by: Roland Scheidegger <[email protected]> Signed-off-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_init.c')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_init.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_init.c b/src/gallium/auxiliary/gallivm/lp_bld_init.c
index 8b8686dd2dd..ce87b8ce932 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_init.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_init.c
@@ -43,6 +43,14 @@
#include <llvm-c/BitWriter.h>
+/* Only MCJIT is available as of LLVM SVN r216982 */
+#if HAVE_LLVM >= 0x0306
+
+#define USE_MCJIT 1
+#define HAVE_AVX 1
+
+#else
+
/**
* AVX is supported in:
* - standard JIT from LLVM 3.2 onwards
@@ -64,6 +72,7 @@
# define HAVE_AVX 0
#endif
+#endif /* HAVE_LLVM >= 0x0306 */
#if USE_MCJIT
void LLVMLinkInMCJIT();