toolchain: disable newlib for x86_64

With new SDK, newlib is supported for x86_64, however in 1.14 this was
not available for x86_64, disable newlib here to satisfy filters and
keep things as they are now in 1.14.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2020-01-15 07:27:36 -08:00
parent 726047f041
commit d708d69f54
1 changed files with 5 additions and 1 deletions

View File

@ -9,4 +9,8 @@ set(SYSROOT_TARGET i586-${TOOLCHAIN_VENDOR}-elf)
set(CROSS_COMPILE ${TOOLCHAIN_HOME}/${CROSS_COMPILE_TARGET}/bin/${CROSS_COMPILE_TARGET}-)
set(SYSROOT_DIR ${ZEPHYR_SDK_INSTALL_DIR}/sysroots/${SYSROOT_TARGET}/usr)
set(TOOLCHAIN_HAS_NEWLIB ON CACHE BOOL "True if toolchain supports newlib")
if("${ARCH}" STREQUAL "x86_64")
set(TOOLCHAIN_HAS_NEWLIB OFF CACHE BOOL "True if toolchain supports newlib")
else()
set(TOOLCHAIN_HAS_NEWLIB ON CACHE BOOL "True if toolchain supports newlib")
endif()