1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

fix(rt-thread): Sconscript use LOCAL_CFLAGS to replace LOCAL_CCFLAGS (#3196)

This commit is contained in:
Man, Jianting (Meco) 2022-03-23 08:13:59 -04:00 committed by GitHub
parent 2b6cc3bc9c
commit 15247f9305
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,15 +52,15 @@ if GetDepend('PKG_USING_LVGL_DEMOS'):
if check_h_hpp_exsit(current_path): if check_h_hpp_exsit(current_path):
inc = inc + [current_path] inc = inc + [current_path]
LOCAL_CCFLAGS = '' LOCAL_CFLAGS = ''
if rtconfig.PLATFORM == 'gcc': # GCC if rtconfig.PLATFORM == 'gcc': # GCC
LOCAL_CCFLAGS += ' -std=c99' LOCAL_CFLAGS += ' -std=c99'
elif rtconfig.PLATFORM == 'armcc': # Keil AC5 elif rtconfig.PLATFORM == 'armcc': # Keil AC5
LOCAL_CCFLAGS += ' --c99 --gnu -g -W' LOCAL_CFLAGS += ' --c99 --gnu -g -W'
elif rtconfig.PLATFORM == 'armclang': # Keil AC6 elif rtconfig.PLATFORM == 'armclang': # Keil AC6
LOCAL_CCFLAGS += ' -std=c99 -g -w' LOCAL_CFLAGS += ' -std=c99 -g -w'
group = group + DefineGroup('LVGL', src, depend = ['PKG_USING_LVGL'], CPPPATH = inc, LOCAL_CCFLAGS = LOCAL_CCFLAGS) group = group + DefineGroup('LVGL', src, depend = ['PKG_USING_LVGL'], CPPPATH = inc, LOCAL_CFLAGS = LOCAL_CFLAGS)
list = os.listdir(cwd) list = os.listdir(cwd)
for d in list: for d in list: