Get build_shared_library to compile at -O3 instead of -O0
This commit is contained in:
parent
137aa31e95
commit
0d14cb5797
1 changed files with 3 additions and 1 deletions
|
@ -16,14 +16,16 @@
|
|||
import subprocess
|
||||
import glob
|
||||
import os
|
||||
import sys
|
||||
|
||||
if not os.path.exists("build"):
|
||||
os.mkdir("build")
|
||||
|
||||
source_files = glob.glob("src/*.cpp")
|
||||
|
||||
compile_args = "g++ -O0 -g -Iinclude -Ilib --std=c++11 --shared -fPIC".split()
|
||||
compile_args = "g++ -O3 -Iinclude -Ilib --std=c++11 --shared -fPIC".split()
|
||||
compile_args += source_files
|
||||
compile_args += sys.argv[1:]
|
||||
|
||||
library = "build/libolm.so"
|
||||
|
||||
|
|
Loading…
Reference in a new issue