diff --git a/arch/sim/Kconfig b/arch/sim/Kconfig index bedca62e9f1..7a82f9c5194 100644 --- a/arch/sim/Kconfig +++ b/arch/sim/Kconfig @@ -15,22 +15,18 @@ config HOST_X86_64 select ARCH_HAVE_STACKCHECK select LIBC_ARCH_ELF_64BIT if LIBC_ARCH_ELF && !SIM_M32 select ARCH_HAVE_MATH_H - select ARCH_TOOLCHAIN_GNU config HOST_X86 bool "x86" select ARCH_HAVE_STACKCHECK - select ARCH_TOOLCHAIN_GNU config HOST_ARM bool "arm" select ARCH_HAVE_STACKCHECK - select ARCH_TOOLCHAIN_GNU config HOST_ARM64 bool "arm64" select ARCH_HAVE_STACKCHECK - select ARCH_TOOLCHAIN_GNU endchoice # Host CPU Type @@ -38,6 +34,20 @@ config ARCH_CHIP string default "sim" +choice + prompt "Toolchain Selection" + default SIM_TOOLCHAIN_GCC + +config SIM_TOOLCHAIN_GCC + bool "Generic GNU toolchain" + select ARCH_TOOLCHAIN_GCC + +config SIM_TOOLCHAIN_CLANG + bool "LLVM Clang toolchain" + select ARCH_TOOLCHAIN_CLANG + +endchoice + config SIM_M32 bool "Build 32-bit simulation on 64-bit machine" default n