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:
parent
ba871733e0
commit
82a47cc06d
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue