Skip to content

Commit c995456

Browse files
Link benchexe with treads dep
Fixing linking failure with libbenchmark 1.7 (now needs pthreads)
1 parent 87486d1 commit c995456

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

meson.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,11 @@ endif
6868

6969
if get_option('build_benchmarks')
7070
gbench_dep = dependency('benchmark', required : true, static: false)
71+
thread_dep = dependency('threads') # recent libbenchmark use pthread_create
7172
subdir('benchmarks')
7273
benchexe = executable('benchexe',
7374
include_directories : [src, lib, utils, bench],
74-
dependencies : [gbench_dep],
75+
dependencies : [gbench_dep, thread_dep],
7576
link_args: ['-lbenchmark_main', ipplink],
7677
link_whole : [libbench],
7778
link_with : libsimdsort,

0 commit comments

Comments
 (0)