mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-08 00:05:33 +03:00
ada.eclass: filter -Warray-bounds
This could maybe be done in theory for ADAFLAGS only but not sure how well that would work with LTO anyway. Bug: https://gcc.gnu.org/PR116226 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
c239c7e41c
commit
4c366be032
@ -31,6 +31,8 @@ esac
|
||||
if [[ -z ${_ADA_ECLASS} ]]; then
|
||||
_ADA_ECLASS=1
|
||||
|
||||
inherit flag-o-matic
|
||||
|
||||
# @ECLASS_VARIABLE: ADA_DEPS
|
||||
# @OUTPUT_VARIABLE
|
||||
# @DESCRIPTION:
|
||||
@ -471,6 +473,9 @@ ada_setup() {
|
||||
|
||||
unset EADA
|
||||
|
||||
# https://gcc.gnu.org/PR116226
|
||||
filter-flags -Warray-bounds
|
||||
|
||||
if [[ ${#_ADA_SUPPORTED_IMPLS[@]} -eq 1 ]]; then
|
||||
if use "ada_target_${_ADA_SUPPORTED_IMPLS[0]}"; then
|
||||
# Only one supported implementation, enable it explicitly
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user