Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
matrix-org
Olm
Commits
0d14cb57
Commit
0d14cb57
authored
Jul 15, 2015
by
Mark Haines
Browse files
Get build_shared_library to compile at -O3 instead of -O0
parent
137aa31e
Changes
1
Hide whitespace changes
Inline
Side-by-side
build_shared_library.py
View file @
0d14cb57
...
@@ -16,14 +16,16 @@
...
@@ -16,14 +16,16 @@
import
subprocess
import
subprocess
import
glob
import
glob
import
os
import
os
import
sys
if
not
os
.
path
.
exists
(
"build"
):
if
not
os
.
path
.
exists
(
"build"
):
os
.
mkdir
(
"build"
)
os
.
mkdir
(
"build"
)
source_files
=
glob
.
glob
(
"src/*.cpp"
)
source_files
=
glob
.
glob
(
"src/*.cpp"
)
compile_args
=
"g++ -O
0 -g
-Iinclude -Ilib --std=c++11 --shared -fPIC"
.
split
()
compile_args
=
"g++ -O
3
-Iinclude -Ilib --std=c++11 --shared -fPIC"
.
split
()
compile_args
+=
source_files
compile_args
+=
source_files
compile_args
+=
sys
.
argv
[
1
:]
library
=
"build/libolm.so"
library
=
"build/libolm.so"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment