Add windows/arm64 toolchain as an emulated x86_64 stopgap (#116) - #125
Open
skeletonkey wants to merge 1 commit into
Open
Add windows/arm64 toolchain as an emulated x86_64 stopgap (#116)#125skeletonkey wants to merge 1 commit into
skeletonkey wants to merge 1 commit into
Conversation
…rib#116) Strawberry Perl has no native Windows arm64 build (StrawberryPerl/Perl-Dist-Strawberry#218), so building for a windows/arm64 target platform fails toolchain resolution entirely: ERROR: ... No matching toolchains found for types: @@rules_perl+//perl:toolchain_type Add a windows/arm64 entry to PLATFORMS that reuses the existing windows/x86_64 Strawberry Perl archive but declares itself compatible with windows/arm64. Windows on Arm ships with built-in x86_64 emulation, and Perl is a plain interpreter with no CPU-specific codegen, so the x86_64 binary runs fine under that emulation layer. This is a stopgap: drop the entry (or point it at a native archive) once Strawberry Perl ships an arm64 build. Wire the new platform through the same places the other platforms are registered (MODULE.bazel's use_repo/register_toolchains lists and the root BUILD.bazel toolchain aliases), add a regression test mirroring the existing perl-less-platform toolchain resolution test, and note the stopgap in the README's Windows Support section. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Strawberry Perl has no native Windows arm64 build
(StrawberryPerl/Perl-Dist-Strawberry#218), so building for a windows/arm64 target platform fails toolchain resolution entirely:
Add a windows/arm64 entry to PLATFORMS that reuses the existing windows/x86_64 Strawberry Perl archive but declares itself compatible with windows/arm64. Windows on Arm ships with built-in x86_64 emulation, and Perl is a plain interpreter with no CPU-specific codegen, so the x86_64 binary runs fine under that emulation layer. This is a stopgap: drop the entry (or point it at a native archive) once Strawberry Perl ships an arm64 build.
Wire the new platform through the same places the other platforms are registered (MODULE.bazel's use_repo/register_toolchains lists and the root BUILD.bazel toolchain aliases), add a regression test mirroring the existing perl-less-platform toolchain resolution test, and note the stopgap in the README's Windows Support section.