Skip to content

Fixed cross-compiling the CPU preamble for Windows - #4921

Merged
zcbenz merged 1 commit into
ml-explore:mainfrom
stemann:feature/windows_cross_preamble
Nov 21, 2026
Merged

zcbenz merged 1 commit into
ml-explore:mainfrom
stemann:feature/windows_cross_preamble

Conversation

@stemann

@stemann stemann commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

The script that generates the CPU JIT preamble runs on the build host, so it is now chosen by the host system rather than by the target system, as it has been since 4d595a2 ("Make compiled preamble work in MSVC"): when cross-compiling for Windows, e.g. with MinGW on Linux, PowerShell is generally not available.

  • ☑️ I understand it is strictly prohibited to use AI to write PR description
  • AI usage disclosure: Some AI use.

@zcbenz
zcbenz marked this pull request as ready for review November 21, 2026 09:59
The script that generates the CPU JIT preamble runs on the build host, so it is now chosen by the host system rather than by the target system, as it has been since 4d595a2 ("Make compiled preamble work in MSVC"): when cross-compiling for Windows, e.g. with MinGW on Linux, PowerShell is generally not available.
@zcbenz
zcbenz force-pushed the feature/windows_cross_preamble branch from 49e4df6 to 0de1e64 Compare November 21, 2026 10:02
@zcbenz
zcbenz merged commit 8803ac3 into ml-explore:main Nov 21, 2026
24 checks passed
rcfa pushed a commit to cubiculum-ai/mlx that referenced this pull request Nov 26, 2026
@stemann
stemann deleted the feature/windows_cross_preamble branch November 28, 2026 12:47
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.

2 participants