...
|
...
|
@@ -127,11 +127,17 @@ if test "x$packaged_llvm" = "xyes"; then
|
127
|
127
|
elif test $llvmver_test -lt 290; then
|
128
|
128
|
AC_MSG_RESULT([no ($llvmver)])
|
129
|
129
|
AC_MSG_ERROR([LLVM >= 2.9 required, but "$llvmver"($llvmver_test) found])
|
130
|
|
-elif test $llvmver_test -ge 370; then
|
|
130
|
+elif test $llvmver_test -lt 360; then
|
|
131
|
+ llvmcomp="jit nativecodegen scalaropts ipo"
|
|
132
|
+ AC_MSG_RESULT([ok ($llvmver)])
|
|
133
|
+elif test $llvmver_test -lt 370; then
|
|
134
|
+ dnl LLVM 3.6.0 removed jit, so we have to use mcjit
|
|
135
|
+ dnl and we're using InitializeNativeTargetAsmParser, so we need the architecture specific parsers
|
|
136
|
+ llvmcomp="mcjit nativecodegen scalaropts ipo x86asmparser powerpcasmparser"
|
|
137
|
+ AC_MSG_RESULT([ok ($llvmver)])
|
|
138
|
+else
|
131
|
139
|
AC_MSG_RESULT([no ($llvmver)])
|
132
|
140
|
AC_MSG_ERROR([LLVM < 3.7 required, but "$llvmver"($llvmver_test) found])
|
133
|
|
-else
|
134
|
|
- AC_MSG_RESULT([ok ($llvmver)])
|
135
|
141
|
fi
|
136
|
142
|
|
137
|
143
|
dnl aquire the required flags to properly link in external LLVM
|
...
|
...
|
@@ -151,8 +157,8 @@ if test "x$llvmconfig" != "x"; then
|
151
|
151
|
else
|
152
|
152
|
AC_SUBST(LLVMCONFIG_LDFLAGS, [`$llvmconfig --ldflags`])
|
153
|
153
|
fi
|
154
|
|
- AC_SUBST(LLVMCONFIG_LIBS, [`$llvmconfig --libs jit nativecodegen scalaropts ipo`])
|
155
|
|
- AC_SUBST(LLVMCONFIG_LIBFILES, [`$llvmconfig --libfiles jit nativecodegen scalaropts ipo`])
|
|
154
|
+ AC_SUBST(LLVMCONFIG_LIBS, [`$llvmconfig --libs $llvmcomp`])
|
|
155
|
+ AC_SUBST(LLVMCONFIG_LIBFILES, [`$llvmconfig --libfiles $llvmcomp`])
|
156
|
156
|
fi
|
157
|
157
|
|
158
|
158
|
AC_MSG_NOTICE([CXXFLAGS from llvm-config: $LLVMCONFIG_CXXFLAGS])
|