projects
/
libjh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4b2a06
)
optimize code with -O3
author
Jann Horn
<jann@thejh.net>
Tue, 18 Jun 2013 17:39:51 +0000
(19:39 +0200)
committer
Jann Horn
<jann@thejh.net>
Tue, 18 Jun 2013 17:39:51 +0000
(19:39 +0200)
compile.sh
patch
|
blob
|
history
diff --git
a/compile.sh
b/compile.sh
index
0768daf
..
756af2b
100755
(executable)
--- a/
compile.sh
+++ b/
compile.sh
@@
-12,7
+12,7
@@
set -f -u -e -o pipefail
# flags for the build - adjust for your needs
# delete all the generated stuff afterwards (with `rm -r gen`)
CC='gcc'
-CFLAGS='-
g -O0 -Wall -Werror -fPIC -std=c99
'
+CFLAGS='-
O3 -Wall -Werror -fPIC -std=c99 -march=native
'
# create build environment if it doesn't exist yet
mkdir -p gen # contains all generated files