Fix IAR Version Problem

[bsp/lpc54608-LPCXpresso/applications/SConscript]
[bsp/imxrt1052-evk/applications/SConscript]
This commit is contained in:
MurphyZhao 2018-01-10 15:08:14 +08:00
parent c258ca794d
commit 472491e7ca
2 changed files with 2 additions and 10 deletions

View File

@ -7,9 +7,7 @@ src = Glob('*.c')
CPPPATH = [cwd, str(Dir('#'))]
# add for startup script
if rtconfig.CROSS_TOOL == 'iar':
CPPDEFINES = ['_TIMESPEC_DEFINED']
elif rtconfig.CROSS_TOOL == 'gcc':
if rtconfig.CROSS_TOOL == 'gcc':
CPPDEFINES = ['__START=entry']
else:
CPPDEFINES = []

View File

@ -6,12 +6,6 @@ cwd = os.path.join(str(Dir('#')), 'applications')
src = Glob('*.c')
CPPPATH = [cwd, str(Dir('#'))]
# add for startup script
if rtconfig.CROSS_TOOL == 'iar':
CPPDEFINES = ['_TIMESPEC_DEFINED']
else:
CPPDEFINES = []
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
Return('group')