summaryrefslogtreecommitdiff
path: root/klm/compile.sh
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2012-07-30 17:13:10 -0400
committerKenneth Heafield <github@kheafield.com>2012-07-30 17:13:10 -0400
commit9fe0219562e5db25171cce8776381600ff9a5649 (patch)
tree142a078206c8dc9db09033cf1ec14ff0056141bb /klm/compile.sh
parent3325742971681642adadfac180f8e0e27014bd57 (diff)
People shouldn't be using compile.sh in cdec, but might as well make it work
Diffstat (limited to 'klm/compile.sh')
-rwxr-xr-x[-rw-r--r--]klm/compile.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/klm/compile.sh b/klm/compile.sh
index 56f2e9b2..55759f97 100644..100755
--- a/klm/compile.sh
+++ b/klm/compile.sh
@@ -7,7 +7,8 @@
set -e
-for i in util/{bit_packing,ersatz_progress,exception,file_piece,murmur_hash,file,mmap} lm/{bhiksha,binary_format,config,lm_exception,model,quantize,read_arpa,search_hashed,search_trie,trie,trie_sort,virtual_interface,vocab}; do
+rm {lm,util}/*.o
+for i in util/{bit_packing,ersatz_progress,exception,file_piece,murmur_hash,file,mmap,usage} lm/{bhiksha,binary_format,config,lm_exception,model,quantize,read_arpa,search_hashed,search_trie,trie,trie_sort,value_build,virtual_interface,vocab}; do
g++ -I. -O3 -DNDEBUG $CXXFLAGS -c $i.cc -o $i.o
done
g++ -I. -O3 -DNDEBUG $CXXFLAGS lm/build_binary.cc {lm,util}/*.o -lz -o build_binary