diff options
author | Kenneth Heafield <github@kheafield.com> | 2012-07-30 17:13:10 -0400 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2012-07-30 17:13:10 -0400 |
commit | 193d137056c3c4f73d66f8db84691d63307de894 (patch) | |
tree | 742a64c1f8a0604c4c74142e15e0296933fdb785 | |
parent | 47c7bc25f95a5612f2b329c237d2405b57ff6ea7 (diff) |
People shouldn't be using compile.sh in cdec, but might as well make it work
-rwxr-xr-x[-rw-r--r--] | klm/compile.sh | 3 |
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 |