Skip to content

vcpkg_configure_meson does not support cross-compilation #11230

@traversaro

Description

@traversaro

Describe the bug
vcpkg_configure_meson function does not support cross compilation, even for simple header-only libraries that just require to disable sanity checks.

Environment

  • OS: Windows
  • Compiler: VS 16.6 Preview

To Reproduce
Steps to reproduce the behavior:

  1. Comment the call to vcpkg_fail_port_install in tomlplusplus's portfile.cmake
  2. ./vcpkg install tomlplusplus:arm64-windows
  3. See error

Expected behavior
./vcpkg install tomlplusplus:arm64-windows should work fine

Failure logs

$ cat buildtrees/tomlplusplus/config-arm64-windows-dbg-out.log
The Meson build system
Version: 0.53.2
Source dir: C:\src\vcpkg\buildtrees\tomlplusplus\src\v1.2.5-6c4dc93a44
Build dir: C:\src\vcpkg\buildtrees\tomlplusplus\arm64-windows-dbg
Build type: native build
Project name: tomlplusplus
Project version: 1.2.5

meson.build:1:0: ERROR: Could not invoke sanity test executable: [WinError 216] This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher.

A full log can be found at C:\src\vcpkg\buildtrees\tomlplusplus\arm64-windows-dbg\meson-logs\meson-log.txt

Additional context
Originally emerged in #10786 .

Metadata

Metadata

Assignees

Labels

category:tool-updateThe issue is with build tool or build script, which requires update or should be executed correctlydepends:upstream-changesWaiting on a change to the upstream project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions