changeset 18328:c3f3fa5a5db5

build: Add rule to check with jit compiler enabled * configure.ac: Add conditional for HAVE_LLVM * test/Makefile.am: Add check-jit target * Makefile.am: Add check-jit target
author Stefan Mahr <dac922@gmx.de>
date Mon, 04 Nov 2013 00:04:55 +0100
parents cd7e09b0abf8
children 6c090b42068b
files Makefile.am configure.ac test/Makefile.am
diffstat 3 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile.am	Mon Jan 06 14:00:43 2014 +0100
+++ b/Makefile.am	Mon Nov 04 00:04:55 2013 +0100
@@ -129,6 +129,11 @@
 check: all
 	$(MAKE) -C test check
 
+if AMCOND_HAVE_LLVM
+check-jit: all
+	$(MAKE) -C test check-jit
+endif
+
 run-octave: run-octave.in Makefile
 	@$(do_subst_script_vals)
 	chmod a+rx "$@"
--- a/configure.ac	Mon Jan 06 14:00:43 2014 +0100
+++ b/configure.ac	Mon Nov 04 00:04:55 2013 +0100
@@ -866,6 +866,9 @@
     LDFLAGS="$save_LDFLAGS"
   fi
 
+  AM_CONDITIONAL([AMCOND_HAVE_LLVM],
+    [test -z "$warn_llvm"])
+
   if test -z "$warn_llvm"; then
     AC_DEFINE(HAVE_LLVM, 1, [Define to 1 if LLVM is available.])
   else
--- a/test/Makefile.am	Mon Jan 06 14:00:43 2014 +0100
+++ b/test/Makefile.am	Mon Nov 04 00:04:55 2013 +0100
@@ -71,6 +71,11 @@
 check: sparse.tst bc-overload-tests.stamp
 	$(top_builddir)/run-octave $(RUN_OCTAVE_OPTIONS) --norc --silent --no-history $(srcdir)/fntests.m $(srcdir)
 
+if AMCOND_HAVE_LLVM
+check-jit: sparse.tst bc-overload-tests.stamp
+	$(top_builddir)/run-octave $(RUN_OCTAVE_OPTIONS) --jit-compiler --norc --silent --no-history $(srcdir)/fntests.m $(srcdir)
+endif
+
 sparse.tst: build-sparse-tests.sh
 	$(srcdir)/build-sparse-tests.sh