diff options
-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 |