# HG changeset patch # User Stefan Mahr # Date 1383519895 -3600 # Node ID c3f3fa5a5db55befc6937a8d8608da622e81400e # Parent cd7e09b0abf83c657d6c01ae0f6803674d3868e1 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 diff -r cd7e09b0abf8 -r c3f3fa5a5db5 Makefile.am --- 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 "$@" diff -r cd7e09b0abf8 -r c3f3fa5a5db5 configure.ac --- 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 diff -r cd7e09b0abf8 -r c3f3fa5a5db5 test/Makefile.am --- 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