You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@joshua.apache.org by mj...@apache.org on 2016/11/22 16:02:06 UTC

[3/3] incubator-joshua git commit: small change in build

small change in build


Project: http://git-wip-us.apache.org/repos/asf/incubator-joshua/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-joshua/commit/bea6161f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-joshua/tree/bea6161f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-joshua/diff/bea6161f

Branch: refs/heads/master
Commit: bea6161f482ea424417964b1b04fbcf51995a59e
Parents: 6c6f2fa
Author: Matt Post <po...@cs.jhu.edu>
Authored: Tue Nov 22 11:01:53 2016 -0500
Committer: Matt Post <po...@cs.jhu.edu>
Committed: Tue Nov 22 11:01:53 2016 -0500

----------------------------------------------------------------------
 jni/build_kenlm.sh | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/bea6161f/jni/build_kenlm.sh
----------------------------------------------------------------------
diff --git a/jni/build_kenlm.sh b/jni/build_kenlm.sh
index 1461181..24f2e62 100755
--- a/jni/build_kenlm.sh
+++ b/jni/build_kenlm.sh
@@ -17,8 +17,7 @@
 #
 set -u
 
-KENLM_MAX_ORDER=10
-
+export KENLM_MAX_ORDER=10
 export CXX=${CXX:-g++}
 export LDFLAGS+=" -lz -lbz2 -llzma"
 #CXXFLAGS+=" -O3 -fPIC -DHAVE_ZLIB"
@@ -32,7 +31,7 @@ cd $JOSHUA/ext/kenlm
 cd build
 cmake .. -DKENLM_MAX_ORDER=$KENLM_MAX_ORDER
 #Use this if cmake fails with boost errors
-#cmake .. -DBoost_NO_BOOST_CMAKE=TRUE -DBOOST_ROOT=/opt/boost
+#cmake .. -DBoost_NO_BOOST_CMAKE=TRUE -DBOOST_ROOT=/opt/boost -DKENLM_MAX_ORDER=$KENLM_MAX_ORDER
 make -j
 cp bin/{query,lmplz,build_binary} $JOSHUA/bin