1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-29 19:08:12 +00:00

use -O3 instead of -Os

This commit is contained in:
Pavol Rusnak 2015-07-07 18:30:33 +02:00
parent f2ef64228a
commit 9c3e51074b
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
CC = gcc
OPTFLAGS = -Os -g
OPTFLAGS = -O3 -g
CFLAGS += $(OPTFLAGS) \
-W \

3
test_curves.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/python
import ctypes as c
import random
import ecdsa
@ -25,7 +26,7 @@ random_iters = int(os.environ.get('ITERS', 1))
scons_file = '''
srcs = 'ecdsa bignum secp256k1 nist256p1 sha2 rand hmac ripemd160 base58'
srcs = [(s + '.c') for s in srcs.split()]
flags = ('-Os -g -W -Wall -Wextra -Wimplicit-function-declaration '
flags = ('-O3 -g -W -Wall -Wextra -Wimplicit-function-declaration '
'-Wredundant-decls -Wstrict-prototypes -Wundef -Wshadow '
'-Wpointer-arith -Wformat -Wreturn-type -Wsign-compare -Wmultichar '
'-Wformat-nonliteral -Winit-self -Wuninitialized -Wformat-security '