forked from Imagelibrary/binutils-gdb
sim: allow the assert configure option everywhere
Currently ports have to call SIM_AC_OPTION_ASSERT explicitly in order to make the configure flag available, which none of them do. There's no real reason to not allow this flag for all ports, so move it to the common sim macro. This way we get standard behavior across all ports.
This commit is contained in:
@@ -14,6 +14,10 @@
|
||||
|
||||
* configure: Regenerate.
|
||||
|
||||
2016-01-10 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* configure: Regenerate.
|
||||
|
||||
2016-01-09 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* config.in, configure: Regenerate.
|
||||
|
||||
21
sim/m32c/configure
vendored
21
sim/m32c/configure
vendored
@@ -752,6 +752,7 @@ enable_sim_debug
|
||||
enable_sim_stdio
|
||||
enable_sim_trace
|
||||
enable_sim_profile
|
||||
enable_sim_assert
|
||||
enable_sim_inline
|
||||
with_pkgversion
|
||||
with_bugurl
|
||||
@@ -1401,6 +1402,7 @@ Optional Features:
|
||||
--enable-sim-trace=opts Enable tracing of simulated programs
|
||||
--enable-sim-profile=opts
|
||||
Enable profiling flags
|
||||
--enable-sim-assert Specify whether to perform random assertions
|
||||
--enable-sim-inline=inlines
|
||||
Specify which functions should be inlined
|
||||
--enable-werror treat compile warnings as errors
|
||||
@@ -12835,7 +12837,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 12838 "configure"
|
||||
#line 12840 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@@ -12941,7 +12943,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 12944 "configure"
|
||||
#line 12946 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@@ -13295,6 +13297,21 @@ fi
|
||||
|
||||
|
||||
|
||||
# Check whether --enable-sim-assert was given.
|
||||
if test "${enable_sim_assert+set}" = set; then :
|
||||
enableval=$enable_sim_assert; case "${enableval}" in
|
||||
yes) sim_assert="-DWITH_ASSERT=1";;
|
||||
no) sim_assert="-DWITH_ASSERT=0";;
|
||||
*) as_fn_error "\"--enable-sim-assert does not take a value\"" "$LINENO" 5; sim_assert="";;
|
||||
esac
|
||||
if test x"$silent" != x"yes" && test x"$sim_assert" != x""; then
|
||||
echo "Setting assert flags = $sim_assert" 6>&1
|
||||
fi
|
||||
else
|
||||
sim_assert=""
|
||||
fi
|
||||
|
||||
|
||||
sim_inline="-DDEFAULT_INLINE=0"
|
||||
# Check whether --enable-sim-inline was given.
|
||||
if test "${enable_sim_inline+set}" = set; then :
|
||||
|
||||
Reference in New Issue
Block a user