Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mgiza.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2015-01-21 16:37:43 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-01-21 16:37:43 +0300
commita42e5541b2e321d4cca13f86b3f12141190e7384 (patch)
tree5075743f48a62bff98487839c5714ecba9a10757 /mgizapp/manual-compile
parent8aea0bb8b3679f652488ac354d8cc0c09d334fcd (diff)
optimize compiling
Diffstat (limited to 'mgizapp/manual-compile')
-rwxr-xr-xmgizapp/manual-compile/compile.sh14
1 files changed, 8 insertions, 6 deletions
diff --git a/mgizapp/manual-compile/compile.sh b/mgizapp/manual-compile/compile.sh
index d7546da..ecf4ac4 100755
--- a/mgizapp/manual-compile/compile.sh
+++ b/mgizapp/manual-compile/compile.sh
@@ -1,12 +1,14 @@
-GCC="gcc -O3"
-GPP=g++
+COMPILE_FLAGS="-O3 -DNDEBUG -DWORDINDEX_WITH_4_BYTE -DBINARY_SEARCH_FOR_TTABLE -MD -MP -MF -MT "
+
+GCC="gcc $COMPILE_FLAGS"
+GPP="g++ $COMPILE_FLAGS"
LDFLAGS="-static"
# mac, 'cos OSX doesn't support static linking and other such nonsense
-#GCC=gcc-mp-4.5
-#GPP=g++-mp-4.5
-#GCC=clang
-#GPP=clang++
+#GCC="gcc-mp-4.5 $COMPILE_FLAGS"
+#GPP="g++-mp-4.5 $COMPILE_FLAGS"
+#GCC="clang $COMPILE_FLAGS"
+#GPP="clang++ $COMPILE_FLAGS"
SRC_DIR=~/workspace/github/mgiza/mgizapp/src
BOOST_ROOT=~/workspace/boost/boost_1_55_0