Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions compiler-rt/cmake/base-config-ix.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,16 @@ macro(test_targets)
elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "nvptx")
test_target_arch(nvptx64 "" "--nvptx64-nvidia-cuda" "-nogpulib" "-flto"
"-fconvergent-functions" "-c")
# Rule for aarch64 baremetal library
# Match the entire triple
elseif ("${COMPILER_RT_DEFAULT_TARGET_TRIPLE}" MATCHES "aarch64-unknown-none-elf")
set (CAN_TARGET_aarch64 1)
list(APPEND COMPILER_RT_SUPPORTED_ARCH aarch64)
# Rule for armv7 baremetal library
# Match the entire triple
elseif ("${COMPILER_RT_DEFAULT_TARGET_TRIPLE}" MATCHES "arm-unknown-none-eabi")
set (CAN_TARGET_armv7 1)
list(APPEND COMPILER_RT_SUPPORTED_ARCH armv7)
elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "arm")
if(WIN32)
test_target_arch(arm "" "" "")
Expand Down
23 changes: 23 additions & 0 deletions compiler-rt/lib/builtins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,29 @@ else ()
C_STANDARD 11
CXX_STANDARD 17
PARENT_TARGET builtins)
if(arch MATCHES "aarch64")
add_compiler_rt_runtime(clang_rt.builtins-pacret-b-key-bti
STATIC
ARCHS ${arch}
SOURCES ${${arch}_SOURCES}
DEFS "${BUILTIN_DEFS}"
CFLAGS ${BUILTIN_CFLAGS_${arch}} -march=armv8.5-a -mbranch-protection=pac-ret+leaf+b-key+bti
PARENT_TARGET builtins)
add_compiler_rt_runtime(clang_rt.builtins-pacret
STATIC
ARCHS ${arch}
SOURCES ${${arch}_SOURCES}
DEFS "${BUILTIN_DEFS}"
CFLAGS ${BUILTIN_CFLAGS_${arch}} -march=armv8.5-a -mbranch-protection=pac-ret+leaf
PARENT_TARGET builtins)
add_compiler_rt_runtime(clang_rt.builtins-pacret-bti
STATIC
ARCHS ${arch}
SOURCES ${${arch}_SOURCES}
DEFS "${BUILTIN_DEFS}"
CFLAGS ${BUILTIN_CFLAGS_${arch}} -march=armv8.5-a -mbranch-protection=pac-ret+leaf+bti
PARENT_TARGET builtins)
endif ()
cmake_pop_check_state()
endif ()
endforeach ()
Expand Down
2 changes: 2 additions & 0 deletions qualcomm-software/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## CPULLVM Toolchain for Embedded



### Welcome to the CPULLVM Toolchain project!
This repository provides the source code and build scripts for CPULLVM, a customized fork
of LLVM designed to build toolchains targeting Arm and AArch64 bare-metal and linux environments.
Expand Down
Loading