about summary refs log tree commit diff homepage
path: root/autoconf
diff options
context:
space:
mode:
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac10
1 files changed, 9 insertions, 1 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 3be97790..83d9e71c 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -219,15 +219,23 @@ AC_ARG_WITH(runtime,
   AS_HELP_STRING([--with-runtime],
     [Select build configuration for runtime libraries (default [Release])]),,
     withval=default)
-
 if test X"${withval}" = Xdefault; then
    with_runtime=Release
 fi
 
+if !(test $llvm_version_major == 2 &&
+    test $llvm_version_minor -lt 8 &&
+    test "$with_runtime" == "Release"); then
+  with_runtime=Release+Asserts
+fi
+
 AC_MSG_CHECKING([runtime configuration])
 if test X${with_runtime} = XRelease; then
     AC_MSG_RESULT([Release])
     AC_SUBST(RUNTIME_ENABLE_OPTIMIZED,[[1]])
+elif test X${with_runtime} = XRelease+Asserts; then
+    AC_MSG_RESULT([Release+Asserts])
+    AC_SUBST(RUNTIME_ENABLE_OPTIMIZED,[[1]])
 elif test X${with_runtime} = XDebug; then
    AC_MSG_RESULT([Debug])
    AC_SUBST(RUNTIME_ENABLE_OPTIMIZED,[[0]])