diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-04 23:43:51 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-12-04 23:45:27 -0500 |
commit | ab18008ed17e0b3ceb39c86562711b8834ed6178 (patch) | |
tree | 316c3005f9d29de898a88b44b28cbed9109ec27e /sim/configure | |
parent | 9a9205a0c729f8eb2e9355af5e9ee52d55e967cf (diff) | |
download | fsf-binutils-gdb-ab18008ed17e0b3ceb39c86562711b8834ed6178.zip fsf-binutils-gdb-ab18008ed17e0b3ceb39c86562711b8834ed6178.tar.gz fsf-binutils-gdb-ab18008ed17e0b3ceb39c86562711b8834ed6178.tar.bz2 |
sim: warnings: enable only for development builds
Reuse the bfd/development.sh script like most other project to
determine whether the current source tree is a dev build (e.g.
git) or a release build, and disable the warnings for releases.
Diffstat (limited to 'sim/configure')
-rwxr-xr-x | sim/configure | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sim/configure b/sim/configure index de67d95..32cd8fb 100755 --- a/sim/configure +++ b/sim/configure @@ -3009,6 +3009,8 @@ _ACEOF ac_config_headers="$ac_config_headers config.h" +. $srcdir/../bfd/development.sh + ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then @@ -12288,7 +12290,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12291 "configure" +#line 12293 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -12394,7 +12396,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12397 "configure" +#line 12399 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -15811,7 +15813,7 @@ if test "${enable_werror+set}" = set; then : fi -if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then +if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then ERROR_ON_WARNING=yes fi |