From 96c789720745edbfefb924e9c2d94c2961c2cae8 Mon Sep 17 00:00:00 2001 From: Sam James Date: Mon, 28 Jul 2025 05:59:31 +0100 Subject: [PATCH] toolchain.eclass: support bootstrap-asan and bootstrap-ubsan Signed-off-by: Sam James --- eclass/toolchain.eclass | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index dbdd9b24c01b2..efa78f6136709 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