1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 22:38:08 +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', ) OBJCOPY='arm-none-eabi-objcopy', )
env.Replace( env.Replace(
CCFLAGS='-Os ' CCFLAGS=env.get('ENV').get('OPTIMIZE', '-Os') + ' '
'-g3 ' '-g3 '
'-nostdlib ' '-nostdlib '
'-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -fno-common ' '-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -fno-common '

View File

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

View File

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

View File

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

View File

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