Explorar o código

gcc toolchain fix for gcc4

Waldemar Brodkorb hai 1 semana
pai
achega
fa37da67e4
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      toolchain/gcc/Makefile

+ 4 - 0
toolchain/gcc/Makefile

@@ -265,6 +265,10 @@ ifeq ($(ADK_TOOLCHAIN_GCC_NDS32),y)
 EXTRA_CXXFLAGS:=	--std=c++03
 endif
 
+ifeq ($(ADK_TOOLCHAIN_GCC_4),y)
+EXTRA_CXXFLAGS:=	-std=gnu++14
+endif
+
 ifeq ($(ADK_TOOLCHAIN_GCC_5),y)
 EXTRA_CXXFLAGS:=	-std=gnu++14
 endif