Skip to content

Commit

Permalink
feat(rt-thread): support LVGL projects with GCC/Keil(AC5)/Keil(AC6)/IAR
Browse files Browse the repository at this point in the history
  • Loading branch information
mysterywolf authored and xiaoxiang781216 committed Oct 31, 2021
1 parent 78ee8e6 commit 32d33fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rt-thread/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ for root, dirs, files in os.walk(lvgl_src_cwd):
inc = inc + [os.path.join(root,dir)]

LOCAL_CCFLAGS = ''
if rtconfig.CROSS_TOOL == 'gcc':
if rtconfig.PLATFORM == 'gcc': # GCC
LOCAL_CCFLAGS += ' -std=c99'
elif rtconfig.CROSS_TOOL == 'keil':
elif rtconfig.PLATFORM == 'armcc': # Keil AC5
LOCAL_CCFLAGS += ' --c99 --gnu -g -W'
elif rtconfig.PLATFORM == 'armclang': # Keil AC6
LOCAL_CCFLAGS += ' -std=c99 -g -w'

group = DefineGroup('LVGL', src, depend = ['PKG_USING_LVGL'], CPPPATH = inc, LOCAL_CCFLAGS = LOCAL_CCFLAGS)

Expand Down

0 comments on commit 32d33fe

Please sign in to comment.