Skip to content

Commit

Permalink
FW-867. Add space optimization flags
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyClaeys committed Jun 11, 2020
1 parent 563a9e3 commit 0d42c1f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SConscript
Original file line number Diff line number Diff line change
@@ -266,6 +266,8 @@ elif env['toolchain'] == 'armgcc':
env.Append(CCFLAGS='-Wall')
env.Append(CCFLAGS='-Wa,-adhlns=${TARGET.base}.lst')
env.Append(CCFLAGS='-c')
env.Append(CCFLAGS='-ffunction-sections')
env.Append(CCFLAGS='-fdata-sections')
env.Append(CCFLAGS='-fmessage-length=0')
env.Append(CCFLAGS='-mcpu=cortex-m3')
env.Append(CCFLAGS='-mthumb')
@@ -286,6 +288,7 @@ elif env['toolchain'] == 'armgcc':
env.Append(LINKFLAGS='-specs=nosys.specs')
env.Append(LINKFLAGS='-specs=nano.specs')
env.Append(LINKFLAGS='-Wl,-Map,${TARGET.base}.map')
env.Append(LINKFLAGS='-Wl,--gc-sections')
env.Append(LINKFLAGS='-mcpu=cortex-m3')
env.Append(LINKFLAGS='-mthumb')
env.Append(LINKFLAGS='-g3')

0 comments on commit 0d42c1f

Please sign in to comment.