zephyr/cmake/toolchain/llvm/Kconfig
Jonathon Penix fb98adc323 kconfig: llvm: arm64: Advertise TLS support when using llvm for arm64
clang and lld both support TLS for arm64/aarch64, so advertise this
support in Kconfig.

Signed-off-by: Jonathon Penix <jpenix@quicinc.com>
2024-06-13 17:58:04 +02:00

29 lines
627 B
Plaintext

# Copyright (c) 2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
choice LLVM_LINKER
prompt "LLVM Linker"
depends on "${ZEPHYR_TOOLCHAIN_VARIANT}" = "llvm"
default LLVM_USE_LD
config LLVM_USE_LD
bool "GNU ld"
help
Use binutils ld linker with llvm/clang.
config LLVM_USE_LLD
bool "LLVM lld"
help
Use LLVM built-in lld linker with llvm/clang.
endchoice
config TOOLCHAIN_LLVM_SUPPORTS_THREAD_LOCAL_STORAGE
depends on RISCV || ARM || ARM64
def_bool y
select TOOLCHAIN_SUPPORTS_THREAD_LOCAL_STORAGE
config TOOLCHAIN_LLVM_SUPPORTS_GNU_EXTENSIONS
def_bool y
select TOOLCHAIN_SUPPORTS_GNU_EXTENSIONS