meson: Don't require C++ compiler for build machine on Windows

We only build C++ code for the host.  Fixes Meson warning:

    meson.build:486: WARNING: add_languages is missing native:, assuming languages are wanted for both host and build.
This commit is contained in:
Benjamin Gilbert 2024-09-04 21:46:04 -07:00
parent 3e97e1f16b
commit af4f149057

View file

@ -483,7 +483,7 @@ if host_machine.system() == 'darwin' and not get_option('quartz').disabled()
endif
if host_machine.system() == 'windows'
add_languages('cpp')
add_languages('cpp', native: false)
add_project_arguments('-DWIN32_LEAN_AND_MEAN', '-DNOMINMAX', language: ['c', 'cpp'])