From 193d137056c3c4f73d66f8db84691d63307de894 Mon Sep 17 00:00:00 2001 From: Kenneth Heafield Date: Mon, 30 Jul 2012 17:13:10 -0400 Subject: People shouldn't be using compile.sh in cdec, but might as well make it work --- klm/compile.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 klm/compile.sh (limited to 'klm') diff --git a/klm/compile.sh b/klm/compile.sh old mode 100644 new mode 100755 index 56f2e9b2..55759f97 --- 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 -- cgit v1.2.3