This is an automated email from the ASF dual-hosted git repository.

GUIDINGLI pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit bc757c62a1907cd0c765c06016489492aebf5b62
Author: hujun5 <[email protected]>
AuthorDate: Thu Mar 19 16:10:38 2026 +0800

    arm64/cmake: set default LLVM arch and ABI type for arm64 targets
    
    Add default LLVM_ARCHTYPE (aarch64) and LLVM_ABITYPE (aapcs64)
    variables for all arm64 targets. These are needed by downstream
    WASM AOT compilation tooling (wamrc) to generate correct native
    code for the target architecture.
    
    Signed-off-by: hujun5 <[email protected]>
---
 arch/arm64/src/cmake/Toolchain.cmake | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm64/src/cmake/Toolchain.cmake 
b/arch/arm64/src/cmake/Toolchain.cmake
index fd7c09555c5..a07dbde730b 100644
--- a/arch/arm64/src/cmake/Toolchain.cmake
+++ b/arch/arm64/src/cmake/Toolchain.cmake
@@ -25,6 +25,10 @@ set(CMAKE_SYSTEM_VERSION 1)
 set(CMAKE_C_COMPILER_FORCED TRUE)
 set(CMAKE_CXX_COMPILER_FORCED TRUE)
 
+# Set default LLVM arch/abi for all arm64 targets
+set(LLVM_ARCHTYPE aarch64)
+set(LLVM_ABITYPE aapcs64)
+
 if(CONFIG_ARCH_CORTEX_A53)
   add_compile_options(-mcpu=cortex-a53)
 elseif(CONFIG_ARCH_CORTEX_A55)

Reply via email to