Get build_shared_library to compile at -O3 instead of -O0

This commit is contained in:
Mark Haines 2015-07-15 13:40:32 +01:00
parent 137aa31e95
commit 0d14cb5797

View file

@ -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++ -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 += source_files
compile_args += sys.argv[1:]
library = "build/libolm.so" library = "build/libolm.so"