Skip to content

build: enable Windows ARM64 via local mpdecimal recipe override#73

Open
pabloinigoblasco wants to merge 1 commit intomainfrom
feat/mpdecimal-arm64-recipe-override
Open

build: enable Windows ARM64 via local mpdecimal recipe override#73
pabloinigoblasco wants to merge 1 commit intomainfrom
feat/mpdecimal-arm64-recipe-override

Conversation

@pabloinigoblasco
Copy link
Copy Markdown
Contributor

Summary

Enables Windows ARM64 (windows-11-arm) builds for plugins that transitively depend on cpython (e.g. toolbox_reactive_scripts_editor).

Problem

The Conan Center mpdecimal/2.5.1 recipe rejects MSVC + non-x86 architectures in validate() and its _build_msvc() machine dict has no armv8 entry. Since cpython requires mpdecimal transitively, every plugin embedding Python fails on windows-11-arm runners with:

mpdecimal/2.5.1: Invalid: mpdecimal/2.5.1 currently does not supported armv8.

Why this is fixable in the recipe alone

mpdecimal's source already supports ARM64 via the portable C ansi64 build path. mpdecimal 4.0.1 ships vcbuild/vcbuild_arm64.bat which sets MACHINE=ansi64 after vcvarsall x64_arm64 and runs the existing Makefile.vc unmodified. The 2.5.1 source has the same Makefile.vc structure — only the Conan recipe gates armv8.

Changes

  • conan_overrides/mpdecimal/all/ — local copy of the upstream Conan Center recipe with two minimal diffs:
    • validate(): allow armv8 for MSVC builds.
    • _build_msvc(): extend the machine dict with "armv8": "ansi64".
    • Patches kept verbatim from upstream.
  • build.sh — exports every conan_overrides/<pkg>/all/ recipe before running conan install, so local revisions take precedence over Conan Center.
  • conan_overrides/README.md — documents the override mechanism and the upstream tracking link.

Verification

  • conan export of the patched recipe succeeds locally.
  • conan graph info resolves cleanly for Windows + armv8 (was previously rejected).
  • conan graph info still resolves for Windows + x86_64 and Windows + x86 (no regression).

Test plan

  • CI passes on ubuntu-22.04 (x86_64) — should be unaffected
  • CI passes on ubuntu-22.04-arm (aarch64) — should be unaffected
  • CI passes on macos-15-intel and macos-14 — should be unaffected
  • CI passes on windows-latest (x64) — should be unaffected
  • CI passes on windows-11-arm (arm64) — the case this PR fixes

Follow-up

Track the upstream Conan Center recipe; remove this override when armv8 support lands there. A contribution to conan-io/conan-center-index mirroring this diff would benefit the wider ecosystem.

The Conan Center mpdecimal recipe rejects MSVC + non-x86 in validate(),
blocking any plugin that transitively requires cpython (e.g. the reactive
scripts toolbox) on windows-11-arm runners.

mpdecimal's source already supports ARM64 via the portable C "ansi64" path
(confirmed by upstream vcbuild_arm64.bat in mpdecimal 4.0.1) — only the
Conan recipe gates it. This adds a local recipe override under
conan_overrides/mpdecimal/ with two small diffs (allow armv8 in validate(),
map "armv8" -> "ansi64" in the _build_msvc() machine dict), and a build.sh
step that exports every override under conan_overrides/<pkg>/all/ before
conan install so local revisions win resolution.

Remove the override once Conan Center carries the fix upstream.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant