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/util
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2013-06-05 15:30:05 +0400
committerKenneth Heafield <github@kheafield.com>2013-06-05 15:30:05 +0400
commit36c17f3c933504dbb540ec318c8c6eb0554d1b87 (patch)
treeb0d3056676e6c238463f4db3c47d954144b8b8cf /util
parent241432b47aac4829743737bdb5d589eebb5c57f5 (diff)
librt only for single-threaded linux
Diffstat (limited to 'util')
-rw-r--r--util/Jamfile9
1 files changed, 3 insertions, 6 deletions
diff --git a/util/Jamfile b/util/Jamfile
index 87ca96b97..910b30550 100644
--- a/util/Jamfile
+++ b/util/Jamfile
@@ -11,18 +11,15 @@ if [ test_library "lzma" ] && [ test_header "lzma.h" ] {
compressed_deps += lzma ;
}
-local rt_deps = ;
-if [ test_library "rt" ] {
- external-lib rt ;
- rt_deps += rt ;
-}
+#rt is needed for clock_gettime on linux. But it's already included with threading=multi
+lib rt ;
obj read_compressed.o : read_compressed.cc : $(compressed_flags) ;
alias read_compressed : read_compressed.o $(compressed_deps) ;
obj read_compressed_test.o : read_compressed_test.cc /top//boost_unit_test_framework : $(compressed_flags) ;
obj file_piece_test.o : file_piece_test.cc /top//boost_unit_test_framework : $(compressed_flags) ;
-fakelib kenutil : bit_packing.cc ersatz_progress.cc exception.cc file.cc file_piece.cc mmap.cc murmur_hash.cc pool.cc read_compressed scoped.cc string_piece.cc usage.cc double-conversion//double-conversion $(rt_deps) : <include>.. : : <include>.. ;
+fakelib kenutil : bit_packing.cc ersatz_progress.cc exception.cc file.cc file_piece.cc mmap.cc murmur_hash.cc pool.cc read_compressed scoped.cc string_piece.cc usage.cc double-conversion//double-conversion : <include>.. <os>LINUX,<threading>single:<source>rt : : <include>.. ;
import testing ;