1# Copyright (c) 2025 IAR Systems AB
2#
3# SPDX-License-Identifier: Apache-2.0
4
5config LD_LINKER_SCRIPT_SUPPORTED
6	default n
7
8choice LINKER_SCRIPT
9	default CMAKE_LINKER_GENERATOR
10endchoice
11
12menu "IAR library options"
13
14config IAR_SEMIHOSTING
15	bool "Use the IAR semihosting implementation."
16	depends on IAR_LIBC
17	help
18	  Use the semihosting implementation in the IAR library
19	  instead of the Zephyr implementation.
20
21config IAR_BUFFERED_WRITE
22	bool "Use buffered write"
23	depends on IAR_SEMIHOSTING
24	help
25	  Instead of printing one character at a time
26	  this option uses a buffer to print a line
27	  at a time instead, increasing speed of printout.
28
29endmenu
30
31config TOOLCHAIN_IAR_SUPPORTS_THREAD_LOCAL_STORAGE
32	def_bool y
33	select TOOLCHAIN_SUPPORTS_THREAD_LOCAL_STORAGE
34
35# Should we set this? It doesn't seem to be used
36# We support most but don't set __GNUC__
37#
38config TOOLCHAIN_IAR_SUPPORTS_GNU_EXTENSIONS
39	def_bool y
40	select TOOLCHAIN_SUPPORTS_GNU_EXTENSIONS
41