meson warning "add_languages is missing native: assuming languages are wanted for both host and build" when cross compiling for Windows
When cross compiling dbus with meson for Windows on openSUSE/Leap meson prints the mentioned warning.
To reproduce
Steps to reproduce the behavior:
- install meson, expat and glib2 development for mingw
sudo zypper ar https://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_Leap_15.4/windows%3Amingw%3Awin32.repo
sudo zypper install git mingw32-cross-gcc mingw32-libexpat-devel mingw32-glib2-devel mingw32-cross-meson ninja
- checkout dbus source code
cd ~
git clone https://gitlab.freedesktop.org/dbus/dbus.git
- build dbus
cd dbus
mingw32-meson build
Actual result
meson print this warning
meson.build:93: WARNING: add_languages is missing native:, assuming languages are wanted for both host and build.
Expected result
The message should not appear
Additional information
The same warning is printed when using the dbus provided build script in step 3:
cd dbus
builddir=dbus-meson-build ci_buildsys=meson ci_host=i686-w64-mingw32 tools/ci-build.sh
Edited by Ralf Habacker