commit:     96c789720745edbfefb924e9c2d94c2961c2cae8
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 28 04:59:31 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jul 28 04:59:31 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96c78972

toolchain.eclass: support bootstrap-asan and bootstrap-ubsan

Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/toolchain.eclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index dbdd9b24c01b..efa78f613670 100644
--- a/eclass/toolchain.eclass
+++ b/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

Reply via email to