aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-07-15 13:40:32 +0100
committerMark Haines <mark.haines@matrix.org>2015-07-15 13:40:32 +0100
commit0d14cb5797f8c3f6e7059631cef737b18489cf81 (patch)
tree8e776af68c4972640af7dc4c1a65d6e2a5d8be13
parent137aa31e95d586a6739bbba9c2ea82debb6a5c43 (diff)
Get build_shared_library to compile at -O3 instead of -O0
-rwxr-xr-xbuild_shared_library.py4
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"