Skip to content

Commit d3be81e

Browse files
elmarcoPatchew Applier
authored andcommitted
meson: rust-bindgen limit allowlist-file to srcdir/include
gitlab CI restricts usage of directories for the build environment and cache. Msys64 is installed under project root ($srcdir/msys64). This confuses rust-bindgen allowlist-file which will generate bindings for all the system include headers under msys64/. blocklist-file is also too strict, as it prevents generating all the recursively dependent types coming from system includes. Instead, let's not use allowlist-file from the project root, Signed-off-by: Marc-André Lureau <[email protected]> Message-Id: <[email protected]>
1 parent f13d0a2 commit d3be81e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

meson.build

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4237,8 +4237,7 @@ if have_rust
42374237
'--no-layout-tests',
42384238
'--no-prepend-enum-name',
42394239
'--allowlist-file', meson.project_source_root() + '/include/.*',
4240-
'--allowlist-file', meson.project_source_root() + '/.*',
4241-
'--allowlist-file', meson.project_build_root() + '/.*'
4240+
'--allowlist-file', meson.project_build_root() + '/.*',
42424241
]
42434242
if not rustfmt.found()
42444243
if bindgen.version().version_compare('<0.65.0')

0 commit comments

Comments
 (0)