Skip to content

Use correct FMI 3 platform tuples on ARM (Apple Silicon, aarch64 Linux) - #39

Merged
StephenSmith25 merged 1 commit into
masterfrom
fix/platform-tuple
Nov 12, 2026
Merged

StephenSmith25 merged 1 commit into
masterfrom
fix/platform-tuple

Conversation

@StephenSmith25

@StephenSmith25 StephenSmith25 commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

get_fmu_arch() mapped every non-x86 machine to "x86-", and CMake chose x86_64/x86 from pointer size alone, so an Apple Silicon build was placed in binaries/x86_64-darwin and the builder looked in x86-darwin. Importers look for aarch64-darwin, so the FMU could not be loaded.

  • osutil: map platform.machine() to FMI 3 architectures (x86, x86_64, aarch32, aarch64, ppc*, riscv*) using the interpreter's bitness
  • CMake: derive the architecture from the build target (VS -A platform, a single CMAKE_OSX_ARCHITECTURES entry, else CMAKE_SYSTEM_PROCESSOR); reject universal macOS builds
  • tests for the platform tuples

get_fmu_arch() mapped every non-x86 machine to "x86-<sys>", and CMake chose
x86_64/x86 from pointer size alone, so an Apple Silicon build was placed in
binaries/x86_64-darwin and the builder looked in x86-darwin. Importers look
for aarch64-darwin, so the FMU could not be loaded.

- osutil: map platform.machine() to FMI 3 architectures (x86, x86_64,
  aarch32, aarch64, ppc*, riscv*) using the interpreter's bitness
- CMake: derive the architecture from the build target (VS -A platform, a
  single CMAKE_OSX_ARCHITECTURES entry, else CMAKE_SYSTEM_PROCESSOR); reject
  universal macOS builds
- tests for the platform tuples

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01X8Wmw797DJpgrMFmT6n8CG
@StephenSmith25
StephenSmith25 merged commit e93a99d into master Nov 12, 2026
9 checks passed
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