kconfig: llvm: riscv: Advertise TLS support when using llvm for RISC-V

clang and lld support TLS for RISC-V, so advertise this support in
Kconfig. I believe other non-RISC-V targets also have TLS support in LLVM,
but I'm not sure on the exact subset. As TLS support in LLVM wasn't
automatically advertised previously, gate this on RISC-V for now as it
a) shouldn't break other targets and b) prevents us from improperly
claiming support for unsupported targets.

Signed-off-by: Jonathon Penix <jpenix@quicinc.com>
This commit is contained in:
Jonathon Penix 2024-01-26 15:16:34 -08:00 committed by Alberto Escolar
commit 82a47cc06d

View file

@ -17,3 +17,8 @@ config LLVM_USE_LLD
Use LLVM built-in lld linker with llvm/clang.
endchoice
config TOOLCHAIN_LLVM_SUPPORTS_THREAD_LOCAL_STORAGE
depends on RISCV
def_bool y
select TOOLCHAIN_SUPPORTS_THREAD_LOCAL_STORAGE