mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 13:23:25 +03:00
librt only for single-threaded linux
This commit is contained in:
parent
241432b47a
commit
36c17f3c93
@ -11,18 +11,15 @@ if [ test_library "lzma" ] && [ test_header "lzma.h" ] {
|
|||||||
compressed_deps += lzma ;
|
compressed_deps += lzma ;
|
||||||
}
|
}
|
||||||
|
|
||||||
local rt_deps = ;
|
#rt is needed for clock_gettime on linux. But it's already included with threading=multi
|
||||||
if [ test_library "rt" ] {
|
lib rt ;
|
||||||
external-lib rt ;
|
|
||||||
rt_deps += rt ;
|
|
||||||
}
|
|
||||||
|
|
||||||
obj read_compressed.o : read_compressed.cc : $(compressed_flags) ;
|
obj read_compressed.o : read_compressed.cc : $(compressed_flags) ;
|
||||||
alias read_compressed : read_compressed.o $(compressed_deps) ;
|
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 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) ;
|
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 ;
|
import testing ;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user