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/juicevm/SConstruct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bsp/juicevm') diff --git a/bsp/juicevm/SConstruct b/bsp/juicevm/SConstruct index 20bae7eee9..7966251fa1 100755 --- a/bsp/juicevm/SConstruct +++ b/bsp/juicevm/SConstruct @@ -12,7 +12,7 @@ TARGET = 'rtthread.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CCFLAGS = rtconfig.CFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS, AR = rtconfig.AR, ARFLAGS = '-rc', LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) -- cgit v1.3.1