This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 7ffea386e6d050a7feb5d70254f79c727ba5d0fe Author: Huang Qi <huang...@xiaomi.com> AuthorDate: Sun Jan 26 20:53:02 2025 +0800 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 <huang...@xiaomi.com> --- arch/x86/src/common/Toolchain.defs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/x86/src/common/Toolchain.defs b/arch/x86/src/common/Toolchain.defs index 360271b71b..f24da4a50c 100644 --- a/arch/x86/src/common/Toolchain.defs +++ b/arch/x86/src/common/Toolchain.defs @@ -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)