Skip to content

Commit b76d868

Browse files
committed
Lookup path to bash in libnvme\doc\meson.build.
1 parent 1683e1d commit b76d868

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

libnvme/doc/meson.build

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ subdir('rst')
4949
top_source_dir = meson.current_source_dir() + '/../'
5050

5151
kernel_doc = find_program(top_source_dir + 'scripts/kernel-doc')
52-
kernel_doc_check = find_program(top_source_dir +'scripts/kernel-doc-check')
52+
kernel_doc_check = files('../scripts/kernel-doc-check')
53+
# Find the path to bash and use it so we don't pick up the WSL bash in Windows.
54+
bash_prog = find_program('bash', required: true)
5355

54-
test('libnvme - kdoc', kernel_doc_check, args: api_paths)
56+
test('libnvme - kdoc', bash_prog, args: [kernel_doc_check] + api_paths)
5557

5658
if want_docs != 'false'
5759
if want_docs == 'all' or want_docs == 'man'

0 commit comments

Comments
 (0)