diff options
author | Mark Haines <mark.haines@matrix.org> | 2015-07-15 13:40:32 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2015-07-15 13:40:32 +0100 |
commit | 0d14cb5797f8c3f6e7059631cef737b18489cf81 (patch) | |
tree | 8e776af68c4972640af7dc4c1a65d6e2a5d8be13 /build_shared_library.py | |
parent | 137aa31e95d586a6739bbba9c2ea82debb6a5c43 (diff) |
Get build_shared_library to compile at -O3 instead of -O0
Diffstat (limited to 'build_shared_library.py')
-rwxr-xr-x | build_shared_library.py | 4 |
1 files changed, 3 insertions, 1 deletions
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" |