Skip to content

Commit 1816d75

Browse files
cuiziweizwxiaoxiang781216
authored andcommitted
arch/x86_64:Fix build cxx warning.
Signed-off-by: cuiziwei <[email protected]>
1 parent 274ca2e commit 1816d75

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/x86_64/src/common/Toolchain.defs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ ifeq ($(CONFIG_FRAME_POINTER),y)
3232
ARCHOPTIMIZATION += -fno-omit-frame-pointer -fno-optimize-sibling-calls
3333
endif
3434

35+
ARCHCFLAGS += -fno-common -Wno-attributes
36+
ARCHCXXFLAGS += -fno-common -Wno-attributes -nostdinc++
37+
3538
ARCHCPUFLAGS = -fno-pic -mcmodel=large -fno-stack-protector -mno-red-zone -mrdrnd
3639
ARCHPICFLAGS = -fPIC
3740
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef

0 commit comments

Comments
 (0)