[sconscript] LOCAL_CCFLAGS -> LOCAL_CFLAGS (#5741)
This commit is contained in:
parent
ce602a6e4a
commit
b1b770f6fb
|
@ -10,15 +10,13 @@ if GetDepend(['BSP_USING_RW007']):
|
||||||
src += Glob('drv_rw007.c')
|
src += Glob('drv_rw007.c')
|
||||||
|
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
LOCAL_CCFLAGS = ''
|
LOCAL_CFLAGS = ''
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc' or 'armclang':
|
if rtconfig.PLATFORM == 'gcc' or rtconfig.PLATFORM == 'armclang':
|
||||||
LOCAL_CCFLAGS += ' -std=c99'
|
LOCAL_CFLAGS += ' -std=c99'
|
||||||
elif rtconfig.PLATFORM == 'armcc':
|
elif rtconfig.PLATFORM == 'armcc':
|
||||||
LOCAL_CCFLAGS += ' --c99'
|
LOCAL_CFLAGS += ' --c99'
|
||||||
elif rtconfig.PLATFORM == 'armclang':
|
|
||||||
LOCAL_CCFLAGS += ' -std=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')
|
Return('group')
|
||||||
|
|
|
@ -10,15 +10,13 @@ if GetDepend(['BSP_USING_RW007']):
|
||||||
src += Glob('drv_rw007.c')
|
src += Glob('drv_rw007.c')
|
||||||
|
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
LOCAL_CCFLAGS = ''
|
LOCAL_CFLAGS = ''
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc' or 'armclang':
|
if rtconfig.PLATFORM == 'gcc' or rtconfig.PLATFORM == 'armclang':
|
||||||
LOCAL_CCFLAGS += ' -std=c99'
|
LOCAL_CFLAGS += ' -std=c99'
|
||||||
elif rtconfig.PLATFORM == 'armcc':
|
elif rtconfig.PLATFORM == 'armcc':
|
||||||
LOCAL_CCFLAGS += ' --c99'
|
LOCAL_CFLAGS += ' --c99'
|
||||||
elif rtconfig.PLATFORM == 'armclang':
|
|
||||||
LOCAL_CCFLAGS += ' -std=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')
|
Return('group')
|
||||||
|
|
|
@ -10,15 +10,13 @@ if GetDepend(['BSP_USING_RW007']):
|
||||||
src += Glob('drv_rw007.c')
|
src += Glob('drv_rw007.c')
|
||||||
|
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
LOCAL_CCFLAGS = ''
|
LOCAL_CFLAGS = ''
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc' or 'armclang':
|
if rtconfig.PLATFORM == 'gcc' or rtconfig.PLATFORM == 'armclang':
|
||||||
LOCAL_CCFLAGS += ' -std=c99'
|
LOCAL_CFLAGS += ' -std=c99'
|
||||||
elif rtconfig.PLATFORM == 'armcc':
|
elif rtconfig.PLATFORM == 'armcc':
|
||||||
LOCAL_CCFLAGS += ' --c99'
|
LOCAL_CFLAGS += ' --c99'
|
||||||
elif rtconfig.PLATFORM == 'armclang':
|
|
||||||
LOCAL_CCFLAGS += ' -std=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')
|
Return('group')
|
||||||
|
|
Loading…
Reference in New Issue