[sconscript] LOCAL_CCFLAGS -> LOCAL_CFLAGS (#5741)

This commit is contained in:
Man, Jianting (Meco) 2022-03-29 22:22:27 -04:00 committed by GitHub
parent ce602a6e4a
commit b1b770f6fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 21 deletions

View File

@ -10,15 +10,13 @@ if GetDepend(['BSP_USING_RW007']):
src += Glob('drv_rw007.c')
CPPPATH = [cwd]
LOCAL_CCFLAGS = ''
LOCAL_CFLAGS = ''
if rtconfig.PLATFORM == 'gcc' or 'armclang':
LOCAL_CCFLAGS += ' -std=c99'
if rtconfig.PLATFORM == 'gcc' or rtconfig.PLATFORM == 'armclang':
LOCAL_CFLAGS += ' -std=c99'
elif rtconfig.PLATFORM == 'armcc':
LOCAL_CCFLAGS += ' --c99'
elif rtconfig.PLATFORM == 'armclang':
LOCAL_CCFLAGS += ' -std=c99'
LOCAL_CFLAGS += ' --c99'
group = DefineGroup('Drivers', src, depend = [], CPPPATH = CPPPATH, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
group = DefineGroup('Drivers', src, depend = [], CPPPATH = CPPPATH, LOCAL_CFLAGS = LOCAL_CFLAGS)
Return('group')

View File

@ -10,15 +10,13 @@ if GetDepend(['BSP_USING_RW007']):
src += Glob('drv_rw007.c')
CPPPATH = [cwd]
LOCAL_CCFLAGS = ''
LOCAL_CFLAGS = ''
if rtconfig.PLATFORM == 'gcc' or 'armclang':
LOCAL_CCFLAGS += ' -std=c99'
if rtconfig.PLATFORM == 'gcc' or rtconfig.PLATFORM == 'armclang':
LOCAL_CFLAGS += ' -std=c99'
elif rtconfig.PLATFORM == 'armcc':
LOCAL_CCFLAGS += ' --c99'
elif rtconfig.PLATFORM == 'armclang':
LOCAL_CCFLAGS += ' -std=c99'
LOCAL_CFLAGS += ' --c99'
group = DefineGroup('Drivers', src, depend = [], CPPPATH = CPPPATH, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
group = DefineGroup('Drivers', src, depend = [], CPPPATH = CPPPATH, LOCAL_CFLAGS = LOCAL_CFLAGS)
Return('group')

View File

@ -10,15 +10,13 @@ if GetDepend(['BSP_USING_RW007']):
src += Glob('drv_rw007.c')
CPPPATH = [cwd]
LOCAL_CCFLAGS = ''
LOCAL_CFLAGS = ''
if rtconfig.PLATFORM == 'gcc' or 'armclang':
LOCAL_CCFLAGS += ' -std=c99'
if rtconfig.PLATFORM == 'gcc' or rtconfig.PLATFORM == 'armclang':
LOCAL_CFLAGS += ' -std=c99'
elif rtconfig.PLATFORM == 'armcc':
LOCAL_CCFLAGS += ' --c99'
elif rtconfig.PLATFORM == 'armclang':
LOCAL_CCFLAGS += ' -std=c99'
LOCAL_CFLAGS += ' --c99'
group = DefineGroup('Drivers', src, depend = [], CPPPATH = CPPPATH, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
group = DefineGroup('Drivers', src, depend = [], CPPPATH = CPPPATH, LOCAL_CFLAGS = LOCAL_CFLAGS)
Return('group')