1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-13 19:18:56 +00:00

build: make it easier to build binaries optimized for debugging (#267)

This commit is contained in:
mcudev 2018-07-09 14:59:35 -04:00 committed by Pavol Rusnak
parent a94ea094a0
commit d897d5e23c
5 changed files with 5 additions and 5 deletions

View File

@ -99,7 +99,7 @@ env.Replace(
OBJCOPY='arm-none-eabi-objcopy', )
env.Replace(
CCFLAGS='-Os '
CCFLAGS=env.get('ENV').get('OPTIMIZE', '-Os') + ' '
'-g3 '
'-nostdlib '
'-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -fno-common '

View File

@ -120,7 +120,7 @@ env.Replace(
OBJCOPY='arm-none-eabi-objcopy', )
env.Replace(
CCFLAGS='-Os '
CCFLAGS=env.get('ENV').get('OPTIMIZE', '-Os') + ' '
'-g3 '
'-nostdlib '
'-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -fno-common '

View File

@ -310,7 +310,7 @@ env.Replace(
OBJCOPY='arm-none-eabi-objcopy', )
env.Replace(
COPT='-Os',
COPT=env.get('ENV').get('OPTIMIZE', '-Os'),
CCFLAGS='$COPT '
'-g3 '
'-nostdlib '

View File

@ -89,7 +89,7 @@ env.Replace(
OBJCOPY='arm-none-eabi-objcopy', )
env.Replace(
CCFLAGS='-Os '
CCFLAGS=env.get('ENV').get('OPTIMIZE', '-Os') + ' '
'-g3 '
'-nostdlib '
'-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -fno-common '

View File

@ -89,7 +89,7 @@ env.Replace(
OBJCOPY='arm-none-eabi-objcopy', )
env.Replace(
CCFLAGS='-Os '
CCFLAGS=env.get('ENV').get('OPTIMIZE', '-Os') + ' '
'-g3 '
'-nostdlib '
'-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -fno-common '