Skip to content

Commit 4b7f1f2

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 47ad4e5 commit 4b7f1f2

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
@@ -4236,8 +4236,7 @@ if have_rust
42364236
'--no-layout-tests',
42374237
'--no-prepend-enum-name',
42384238
'--allowlist-file', meson.project_source_root() + '/include/.*',
4239-
'--allowlist-file', meson.project_source_root() + '/.*',
4240-
'--allowlist-file', meson.project_build_root() + '/.*'
4239+
'--allowlist-file', meson.project_build_root() + '/.*',
42414240
]
42424241
if not rustfmt.found()
42434242
if bindgen.version().version_compare('<0.65.0')

0 commit comments

Comments
 (0)