From 1baabbc7f6729d2a94feb277054184233eae87d7 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Thu, 28 Mar 2024 23:48:20 -0400 Subject: [PATCH] tests: fix missing dependency causing flaky build failure 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. --- test cases/rust/12 bindgen/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test cases/rust/12 bindgen/meson.build b/test cases/rust/12 bindgen/meson.build index f31040ec7..09cb02a6d 100644 --- a/test cases/rust/12 bindgen/meson.build +++ b/test cases/rust/12 bindgen/meson.build @@ -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',