arch:xtensa:toolchain: add -Wno-atmoic-alignment flags for xcc

see a bug here:
https://bugs.llvm.org/show_bug.cgi?id=43603

Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
This commit is contained in:
zhuyanlin 2022-05-16 15:46:50 +08:00 committed by Petro Karashchenko
parent f9836c94fb
commit 3c6b844fcd
2 changed files with 4 additions and 0 deletions

View File

@ -122,6 +122,8 @@ endif
# Default toolchain
ifeq ($(CONFIG_XTENSA_TOOLCHAIN_XCC), y)
ARCHCFLAGS += -Wno-atomic-alignment
ARCHCXXFLAGS += -Wno-atomic-alignment
CC = $(CROSSDEV)xcc
CXX = $(CROSSDEV)xc++
CPP = $(CROSSDEV)xcc -E -P -x c

View File

@ -122,6 +122,8 @@ endif
# Default toolchain
ifeq ($(CONFIG_XTENSA_TOOLCHAIN_XCC), y)
ARCHCFLAGS += -Wno-atomic-alignment
ARCHCXXFLAGS += -Wno-atomic-alignment
CC = $(CROSSDEV)xcc
CXX = $(CROSSDEV)xc++
CPP = $(CROSSDEV)xcc -E -P -x c