diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2022-03-18 12:29:16 -0700 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2022-03-20 11:00:53 -0400 |
commit | adc509ed98694d3c7a7b0c578c94cb3a886c21eb (patch) | |
tree | 5944a37c0c9e784455265bbd4cd4eda2da2601fd | |
parent | bf5d11f049d139e47ef0fff1708b492fba46cc00 (diff) | |
download | meson-adc509ed98694d3c7a7b0c578c94cb3a886c21eb.zip meson-adc509ed98694d3c7a7b0c578c94cb3a886c21eb.tar.gz meson-adc509ed98694d3c7a7b0c578c94cb3a886c21eb.tar.bz2 |
modules/rust: set bindgen include_dirs for both build and source dir
Which we pretty obviously need if any of our headers are generated
-rw-r--r-- | mesonbuild/modules/unstable_rust.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/modules/unstable_rust.py b/mesonbuild/modules/unstable_rust.py index f656cd8..85e49cf 100644 --- a/mesonbuild/modules/unstable_rust.py +++ b/mesonbuild/modules/unstable_rust.py @@ -194,7 +194,8 @@ class RustModule(ExtensionModule): inc_strs: T.List[str] = [] for i in kwargs['include_directories']: # bindgen always uses clang, so it's safe to hardcode -I here - inc_strs.extend([f'-I{x}' for x in i.to_string_list(state.environment.get_source_dir())]) + inc_strs.extend([f'-I{x}' for x in i.to_string_list( + state.environment.get_source_dir(), state.environment.get_build_dir())]) if self._bindgen_bin is None: self._bindgen_bin = state.find_program('bindgen') |