[vlc-commits] [Git][videolan/vlc][master] meson: pass build options as a positional to gen-build-config.py

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Sat Jul 4 14:21:18 UTC 2026



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
6cf47649 by Alexandre Janniaux at 2026-07-04T15:36:06+02:00
meson: pass build options as a positional to gen-build-config.py

When meson.build_options() starts with -D, argparse treats it as an
unknown option flag and rejects since the build options are supposed to
be forwarded via positional arguments.

Insert -- so the options string is parsed as the CONFIGURE_LINE argument
instead, fixing build_config.c generation for any non-empty build
configuration starting with dashes.

- - - - -


1 changed file:

- src/meson.build


Changes:

=====================================
src/meson.build
=====================================
@@ -28,6 +28,7 @@ fourcc = custom_target('fourcc_tables.h',
 
 meson_build_config = custom_target('build_config.c',
     command: [find_program('../buildsystem/gen-build-config.py'),
+              '--',
               meson.build_options().replace('\'"\'"\'', '\\\'')],
     capture: true,
     output: 'build_config.c',



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6cf476499ea04a33793155f88b498ca8b9c2f0f3

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6cf476499ea04a33793155f88b498ca8b9c2f0f3
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list