From 052a72e4621b02b0d91f7bad0b6890ba25af2ccc Mon Sep 17 00:00:00 2001 From: Flatcar Buildbot Date: Mon, 4 Aug 2025 07:17:09 +0000 Subject: [PATCH] eclass/toolchain: Sync with Gentoo It's from Gentoo commit 96c789720745edbfefb924e9c2d94c2961c2cae8. --- .../src/third_party/portage-stable/eclass/toolchain.eclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sdk_container/src/third_party/portage-stable/eclass/toolchain.eclass b/sdk_container/src/third_party/portage-stable/eclass/toolchain.eclass index 274789559d..efa78f6136 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/toolchain.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/toolchain.eclass @@ -1199,6 +1199,8 @@ toolchain_setup_d() { toolchain_src_configure() { BUILD_CONFIG_TARGETS=() is-flagq '-O3' && BUILD_CONFIG_TARGETS+=( bootstrap-O3 ) + is-flagq '-fsanitize=address' && BUILD_CONFIG_TARGETS+=( bootstrap-asan ) + is-flagq '-fsanitize=undefined' && BUILD_CONFIG_TARGETS+=( bootstrap-ubsan ) downgrade_arch_flags gcc_do_filter_flags @@ -2178,7 +2180,7 @@ gcc_do_filter_flags() { fi if ver_test -lt 16.1 ; then - filter-flags -fdiagnostics-details + filter-flags '-fdiagnostics-show-context=*' fi # Ada: PR116226