1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 14:00:21 +02:00

Always enable assertions in embedded lightning

* libguile/lightning/configure.ac: Remove --enable-assertions option;
  always enable assertions.
* libguile/lightning/lib/jit_memory.c:
* libguile/lightning/lib/jit_note.c:
* libguile/lightning/lib/jit_print.c:
* libguile/lightning/lib/jit_rewind.c:
* libguile/lightning/lib/jit_size.c:
* libguile/lightning/lib/lightning.c: Define DEBUG to 1.
This commit is contained in:
Andy Wingo 2018-07-01 20:58:08 +02:00
parent 0ce8e6969e
commit 92a75703b1
7 changed files with 6 additions and 11 deletions

View file

@ -2,17 +2,6 @@ LIGHTNING_CFLAGS=
AC_CHECK_FUNCS(mremap ffsl isnan isinf,,)
AC_ARG_ENABLE(assertions,
AS_HELP_STRING([--enable-assertions],
[Enable runtime code generation assertions]),
[DEBUG=$enableval], [DEBUG=auto])
if test "x$DEBUG" = xyes; then
LIGHTNING_CFLAGS="$LIGHTNING_CFLAGS -DDEBUG=1"
else
LIGHTNING_CFLAGS="$LIGHTNING_CFLAGS -DNDEBUG"
DEBUG=no
fi
case "$host_os" in
*bsd*|osf*) SHLIB="" ;;
*hpux*) SHLIB="-ldld" ;;

View file

@ -17,6 +17,7 @@
* Paulo Cesar Pereira de Andrade
*/
#define DEBUG 1
#define DISASSEMBLER 0
#include <lightning.h>

View file

@ -17,6 +17,7 @@
* Paulo Cesar Pereira de Andrade
*/
#define DEBUG 1
#define DISASSEMBLER 0
#include <lightning.h>

View file

@ -17,6 +17,7 @@
* Paulo Cesar Pereira de Andrade
*/
#define DEBUG 1
#define DISASSEMBLER 0
#include <lightning.h>

View file

@ -17,6 +17,7 @@
* Paulo Cesar Pereira de Andrade
*/
#define DEBUG 1
#define DISASSEMBLER 0
#include <lightning.h>

View file

@ -17,6 +17,7 @@
* Paulo Cesar Pereira de Andrade
*/
#define DEBUG 1
#define DISASSEMBLER 0
#include <lightning.h>

View file

@ -17,6 +17,7 @@
* Paulo Cesar Pereira de Andrade
*/
#define DEBUG 1
#define DISASSEMBLER 0
#define DEVEL_DISASSEMBLER 0