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/m4 | |
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/m4')
-rw-r--r-- | sim/m4/sim_ac_option_warnings.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/m4/sim_ac_option_warnings.m4 b/sim/m4/sim_ac_option_warnings.m4 index 8ff94df..16d358b 100644 --- a/sim/m4/sim_ac_option_warnings.m4 +++ b/sim/m4/sim_ac_option_warnings.m4 @@ -25,8 +25,8 @@ AC_ARG_ENABLE(werror, *) AC_MSG_ERROR(bad value ${enableval} for --enable-werror) ;; esac]) -dnl Enable -Werror by default when using gcc -if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then +dnl Enable -Werror by default when using gcc. Turn it off for releases. +if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then ERROR_ON_WARNING=yes fi |