sim: Add compiler selection
Use gcc by default Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
This commit is contained in:
parent
9b0df45d1c
commit
81f060b8d5
1 changed files with 14 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue