1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-06-28 02:42:34 +00:00

build(core/unix): use -g instead of -g3

Prevents flood of warnings on macos.

[no changelog]
This commit is contained in:
Martin Milata 2025-04-16 16:22:27 +02:00
parent c0eae1c47e
commit 04aeaf0607
2 changed files with 2 additions and 2 deletions

View File

@ -207,7 +207,7 @@ ALLPATHS = ['embed/rust',
env.Replace( env.Replace(
COPT=env.get('ENV').get('OPTIMIZE', '-Os'), COPT=env.get('ENV').get('OPTIMIZE', '-Os'),
CCFLAGS='$COPT ' CCFLAGS='$COPT '
'-g3 ' '-g '
'-nostdlib ' '-nostdlib '
'-std=gnu11 -Wall -Werror -Wpointer-arith -Wno-missing-braces -fno-common ' '-std=gnu11 -Wall -Werror -Wpointer-arith -Wno-missing-braces -fno-common '
'-fdata-sections -ffunction-sections ' '-fdata-sections -ffunction-sections '

View File

@ -513,7 +513,7 @@ ALLPATHS=['.',
env.Replace( env.Replace(
CCFLAGS='$COPT ' CCFLAGS='$COPT '
'-g3 ' '-g '
'-std=gnu11 -Wall -Werror -Wuninitialized -Wno-missing-braces ' '-std=gnu11 -Wall -Werror -Wuninitialized -Wno-missing-braces '
'-fdata-sections -ffunction-sections -fPIE ' + CCFLAGS_MOD, '-fdata-sections -ffunction-sections -fPIE ' + CCFLAGS_MOD,
CCFLAGS_QSTR='-DNO_QSTR -DN_X64 -DN_X86 -DN_THUMB', CCFLAGS_QSTR='-DNO_QSTR -DN_X64 -DN_X86 -DN_THUMB',