From 0d14cb5797f8c3f6e7059631cef737b18489cf81 Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Wed, 15 Jul 2015 13:40:32 +0100 Subject: Get build_shared_library to compile at -O3 instead of -O0 --- build_shared_library.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'build_shared_library.py') diff --git a/build_shared_library.py b/build_shared_library.py index 6dbafcd..1eb8675 100755 --- a/build_shared_library.py +++ b/build_shared_library.py @@ -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" -- cgit v1.2.3