From 6893214fb3bc5ab99116724856a8bda660f5b054 Mon Sep 17 00:00:00 2001 From: Patrick Date: Tue, 13 Aug 2024 16:48:26 +0200 Subject: [PATCH] chore: better dependecies in options --- Kconfig.zephyr | 1 + subsys/debug/Kconfig | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Kconfig.zephyr b/Kconfig.zephyr index 1b12e5955a..086d268eac 100644 --- a/Kconfig.zephyr +++ b/Kconfig.zephyr @@ -508,6 +508,7 @@ endchoice config LTO bool "Link Time Optimization [EXPERIMENTAL]" depends on !(GEN_ISR_TABLES || GEN_IRQ_VECTOR_TABLE) || ISR_TABLES_LOCAL_DECLARATION + depends on (!NATIVE_LIBRARY || LLVM_USE_LLD) depends on !CODE_DATA_RELOCATION select EXPERIMENTAL help diff --git a/subsys/debug/Kconfig b/subsys/debug/Kconfig index 3ef79c1d65..1b507ba8b2 100644 --- a/subsys/debug/Kconfig +++ b/subsys/debug/Kconfig @@ -111,7 +111,6 @@ config GPROF config CFI bool "Build with control flow integrity sanitizer" depends on LTO - depends on LLVM_USE_LLD help Builds Zephyr with Address Sanitizer enabled. This is currently only supported by boards based on the posix architecture, and requires a