[vlc-commits] [Git][videolan/vlc][master] meson.build: fix configuration for objcpp compiler
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri May 22 05:58:04 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
5ef4b28e by Alexandre Janniaux at 2026-05-22T05:44:39+00:00
meson.build: fix configuration for objcpp compiler
Fixes the following issues:
modules/meson.build:465:17: ERROR: No host machine compiler for 'modules/gui/skins2/macosx/macosx_dragdrop.mm'
- - - - -
1 changed file:
- meson.build
Changes:
=====================================
meson.build
=====================================
@@ -56,7 +56,7 @@ vlc_about = custom_target('vlc_about.h',
cargo_rustc_static_libs = find_program('buildsystem/cargo-rustc-static-libs.py')
cargo_output = find_program('buildsystem/cargo-output.py')
-add_project_arguments('-DHAVE_CONFIG_H=1', language: ['c', 'cpp', 'objc'])
+add_project_arguments('-DHAVE_CONFIG_H=1', language: ['c', 'cpp', 'objc', 'objcpp'])
# If building with contribs, read the relevant paths from the machine file
# to use it during checks (check_header, find_library) later.
@@ -104,6 +104,7 @@ endif
if host_system == 'darwin'
add_languages('objc', native: false)
+ add_languages('objcpp', native: false)
endif
if host_system == 'os/2'
@@ -523,7 +524,7 @@ add_project_arguments(cpp.get_supported_arguments([
'-Wformat-security',
'-Wduplicated-branches',
'-Wduplicated-cond',
-]), language: ['cpp'])
+]), language: ['cpp', 'objcpp'])
if get_option('extra_checks')
add_project_arguments(cc.get_supported_arguments([
@@ -543,7 +544,7 @@ if get_option('extra_checks')
'-Werror=format',
'-Werror=excess-initializers',
'-Werror=unterminated-string-initialization',
- ]), language: ['cpp'])
+ ]), language: ['cpp', 'objcpp'])
endif
if get_option('branch_protection') \
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/5ef4b28e8683164b6474d9b47d62af8e97d383a5
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/5ef4b28e8683164b6474d9b47d62af8e97d383a5
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