mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
x86/Toolchain.defs: Add LLVM target definitions
Summary: - Added LLVM target definitions (`LLVM_ARCHTYPE`, `LLVM_CPUTYPE`, `LLVM_ABITYPE`) to the x86 toolchain configuration file - These definitions are necessary for compatibility with LLVM-based toolchains Impact: - Enables support for LLVM toolchains when building for x86 targets - No functional changes for existing GCC-based toolchains - Improves cross-compilation flexibility by supporting additional toolchain options Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
@@ -32,6 +32,11 @@ ARCHCPUFLAGS = -march=i486 -mtune=i486 -fno-stack-protector
|
||||
ARCHPICFLAGS = -fpic
|
||||
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef
|
||||
|
||||
# LLVM target definitions
|
||||
LLVM_ARCHTYPE := x86
|
||||
LLVM_CPUTYPE := i486
|
||||
LLVM_ABITYPE := sysv
|
||||
|
||||
# Check if building a 32-bit target with a 64-bit toolchain
|
||||
|
||||
ifeq ($(CONFIG_ARCH_X86_M32),y)
|
||||
|
||||
Reference in New Issue
Block a user