1# Copyright (c) 2023 Intel Corporation
2# SPDX-License-Identifier: Apache-2.0
3
4choice LLVM_LINKER
5	prompt "LLVM Linker"
6	depends on "${ZEPHYR_TOOLCHAIN_VARIANT}" = "llvm"
7	default LLVM_USE_LD
8
9config LLVM_USE_LD
10	bool "GNU ld"
11	help
12	  Use binutils ld linker with llvm/clang.
13
14config LLVM_USE_LLD
15	bool "LLVM lld"
16	help
17	  Use LLVM built-in lld linker with llvm/clang.
18
19endchoice
20
21config TOOLCHAIN_LLVM_SUPPORTS_THREAD_LOCAL_STORAGE
22	depends on RISCV || ARM || ARM64
23	def_bool y
24	select TOOLCHAIN_SUPPORTS_THREAD_LOCAL_STORAGE
25
26config TOOLCHAIN_LLVM_SUPPORTS_GNU_EXTENSIONS
27	def_bool y
28	select TOOLCHAIN_SUPPORTS_GNU_EXTENSIONS
29