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:
parent
f2ef64228a
commit
9c3e51074b
2
Makefile
2
Makefile
@ -1,6 +1,6 @@
|
|||||||
CC = gcc
|
CC = gcc
|
||||||
|
|
||||||
OPTFLAGS = -Os -g
|
OPTFLAGS = -O3 -g
|
||||||
|
|
||||||
CFLAGS += $(OPTFLAGS) \
|
CFLAGS += $(OPTFLAGS) \
|
||||||
-W \
|
-W \
|
||||||
|
3
test_curves.py
Normal file → Executable file
3
test_curves.py
Normal file → Executable file
@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
import ctypes as c
|
import ctypes as c
|
||||||
import random
|
import random
|
||||||
import ecdsa
|
import ecdsa
|
||||||
@ -25,7 +26,7 @@ random_iters = int(os.environ.get('ITERS', 1))
|
|||||||
scons_file = '''
|
scons_file = '''
|
||||||
srcs = 'ecdsa bignum secp256k1 nist256p1 sha2 rand hmac ripemd160 base58'
|
srcs = 'ecdsa bignum secp256k1 nist256p1 sha2 rand hmac ripemd160 base58'
|
||||||
srcs = [(s + '.c') for s in srcs.split()]
|
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 '
|
'-Wredundant-decls -Wstrict-prototypes -Wundef -Wshadow '
|
||||||
'-Wpointer-arith -Wformat -Wreturn-type -Wsign-compare -Wmultichar '
|
'-Wpointer-arith -Wformat -Wreturn-type -Wsign-compare -Wmultichar '
|
||||||
'-Wformat-nonliteral -Winit-self -Wuninitialized -Wformat-security '
|
'-Wformat-nonliteral -Winit-self -Wuninitialized -Wformat-security '
|
||||||
|
Loading…
Reference in New Issue
Block a user