Skip to content

Commit

Permalink
sim: Add compiler selection
Browse files Browse the repository at this point in the history
Use gcc by default

Signed-off-by: wangmingrong1 <[email protected]>
  • Loading branch information
W-M-R committed Nov 14, 2024
1 parent 132445a commit 3cb33f2
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions arch/sim/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,39 @@ 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

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
Expand Down

0 comments on commit 3cb33f2

Please sign in to comment.