From 0369db718cd3b1ff58ceb2fc44a48641a0fecc66 Mon Sep 17 00:00:00 2001 From: JCZou Date: Thu, 19 Aug 2021 08:53:27 +0200 Subject: Fix compiler flags issue CCFLAGS is used by gcc and g++ compiler. So CFLAGS should be used for gcc to avoid passing gcc flags to g++. --- bsp/mipssim/SConstruct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bsp/mipssim') diff --git a/bsp/mipssim/SConstruct b/bsp/mipssim/SConstruct index beea148664..a4572f232d 100644 --- a/bsp/mipssim/SConstruct +++ b/bsp/mipssim/SConstruct @@ -14,7 +14,7 @@ rtconfig.AFLAGS += ' -I' + str(Dir('#')) DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CCFLAGS = rtconfig.CFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, AR = rtconfig.AR, ARFLAGS = '-rc', LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) -- cgit v1.3.1