Skip to content

Commit

Permalink
cmake: Disable Newlib-nano for Xtensa
Browse files Browse the repository at this point in the history
This commit temporarily disables the Newlib nano variant for the Xtensa
architecture because there is a bug in the nano `memset` implementation
causing a system crash (see the GitHub issue zephyrproject-rtos#660).

Revert this commit when zephyrproject-rtos#660 is fixed.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
  • Loading branch information
stephanosio committed Apr 11, 2023
1 parent 3c931c1 commit 73abc85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/zephyr/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

config TOOLCHAIN_ZEPHYR_0_16
def_bool y
select HAS_NEWLIB_LIBC_NANO
# FIXME: Newlib-nano is disabled for Xtensa targets due to the memset
# bug causing crashes (see the GitHub issue #660).
select HAS_NEWLIB_LIBC_NANO if !XTENSA

config TOOLCHAIN_ZEPHYR_SUPPORTS_THREAD_LOCAL_STORAGE
def_bool y
Expand Down

0 comments on commit 73abc85

Please sign in to comment.