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

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lm
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2012-10-19 13:16:45 +0400
committerKenneth Heafield <github@kheafield.com>2012-10-19 13:16:45 +0400
commit791a7b68fc5e05c04e10b535bf7f0d8186e8df48 (patch)
tree4eaf7a036a08a2c6d450eada05205c62de2f1d2f /lm
parentde5276630b5fe146484380bee3d94aa164246080 (diff)
Make max-factors a compile option and add recompilation safety
Diffstat (limited to 'lm')
-rw-r--r--lm/Jamfile5
1 files changed, 4 insertions, 1 deletions
diff --git a/lm/Jamfile b/lm/Jamfile
index c537d93d4..ef45a6a50 100644
--- a/lm/Jamfile
+++ b/lm/Jamfile
@@ -8,7 +8,10 @@ if ( $(max-order) != 6 ) {
}
max-order = <define>KENLM_MAX_ORDER=$(max-order) ;
-lib kenlm : bhiksha.cc binary_format.cc config.cc lm_exception.cc model.cc quantize.cc read_arpa.cc search_hashed.cc search_trie.cc trie.cc trie_sort.cc value_build.cc virtual_interface.cc vocab.cc ../util//kenutil : <include>.. $(max-order) : : <include>.. <library>../util//kenutil $(max-order) ;
+path-constant ORDER-LOG : bin/order.log ;
+update-if-changed $(ORDER-LOG) $(max-order) ;
+
+lib kenlm : bhiksha.cc binary_format.cc config.cc lm_exception.cc model.cc quantize.cc read_arpa.cc search_hashed.cc search_trie.cc trie.cc trie_sort.cc value_build.cc virtual_interface.cc vocab.cc ../util//kenutil : <include>.. $(max-order) : : <include>.. <library>../util//kenutil $(max-order) <dependency>$(ORDER-LOG) ;
import testing ;