Skip to content

Commit 4f610b9

Browse files
keith-packardstephanosio
authored andcommitted
cmake: Declare toolchain support for thread local storage
The Zephyr SDK toolchains all enable TLS, so add a Kconfig setting which reports this to the Zephyr build. This will allow the explicit zephyr toolchain variant check in Zephyr's kernel/Kconfig to eventually be removed. Signed-off-by: Keith Packard <keithp@keithp.com>
1 parent 79789b3 commit 4f610b9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/zephyr/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@
33
config TOOLCHAIN_ZEPHYR_0_14
44
def_bool y
55
select HAS_NEWLIB_LIBC_NANO if (ARC || (ARM && !ARM64) || RISCV)
6+
7+
config TOOLCHAIN_ZEPHYR_SUPPORTS_THREAD_LOCAL_STORAGE
8+
def_bool y
9+
select TOOLCHAIN_SUPPORTS_THREAD_LOCAL_STORAGE

0 commit comments

Comments
 (0)