Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

- [meson] add note about cross-building #2296

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions reference/conanfile/tools/meson.rst
Expand Up @@ -62,6 +62,15 @@ etc. This includes but is not limited to the following:
but with additional information to describe host, target, and build machines (such
as the processor architecture).

**NOTE**: unlike CMake, meson cannot automatically deduce the compiler executable in case of cross-building, so it has to be
explicitly specified within conan profile, for instance, the following might be required in case of Visual Studio:

.. code-block:: text

[env]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@memsharded I'm wondering if we should keep using the env but I can't find docs for buildenv and runenv

CC=cl
CXX=cl

Check out the meson documentation for more details on native and cross files:

* `Machine files <https://mesonbuild.com/Machine-files.html>`_
Expand Down