Skip to content

Commit

Permalink
tests: fix missing dependency causing flaky build failure
Browse files Browse the repository at this point in the history
We have two copies of other.h, one of which is generated. If we don't
include the include/ directory then building fails unless the
custom_target which copies it over, happens to run early enough. On
parallel builds this may fall on its face.
  • Loading branch information
eli-schwartz committed Apr 15, 2024
1 parent f9eef40 commit 1baabbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test cases/rust/12 bindgen/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ if prog_bindgen.version().version_compare('>= 0.65')
input : 'src/header3.h',
output : 'header3.rs',
output_inline_wrapper : 'header3.c',
include_directories : 'include',
include_directories : inc,
)
c_inline_wrapper = static_library('c_wrapper', gen3[1])
c_inline_wrapper = static_library('c_wrapper', gen3[1], include_directories: inc)

f = configure_file(
input : 'src/main3.rs',
Expand Down

0 comments on commit 1baabbc

Please sign in to comment.