Commit 6a2084ef authored by Andrew Boie's avatar Andrew Boie Committed by Anas Nashif
Browse files

Makefile.toolchain.zephyr: fix C++ on Xtensa


Need to set CXXFLAGS just like we did CFLAGS.
Signed-off-by: default avatarAndrew Boie <andrew.p.boie@intel.com>
parent a4a98908
Showing with 3 additions and 1 deletion
+3 -1
......@@ -101,7 +101,9 @@ SYSROOT_TARGET_xtensa = xtensa-$(TOOLCHAIN_VENDOR)-elf
CROSS_COMPILE_xtensa=$(TOOLCHAIN_HOME)/usr/bin/$(CROSS_COMPILE_TARGET_xtensa)/$(CROSS_COMPILE_TARGET_xtensa)-
ifeq ($(ARCH),xtensa)
SYSROOT := ${ZEPHYR_SDK_INSTALL_DIR}/sysroots/${SYSROOT_TARGET_${ARCH}}
CFLAGS += --sysroot=$(SYSROOT) -I=/usr/include -I=/usr/include/arch/include
common_xtensa_flags := --sysroot=$(SYSROOT) -I=/usr/include -I=/usr/include/arch/include
CFLAGS += $(common_xtensa_flags)
CXXFLAGS += $(common_xtensa_flags)
endif
TOOLCHAIN_LIBS_xtensa = hal
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment