Skip to content

Fix bug in superpmi scripts for determining jit name#122619

Closed
AndyAyersMS wants to merge 1 commit intodotnet:mainfrom
AndyAyersMS:FixSpmiScript
Closed

Fix bug in superpmi scripts for determining jit name#122619
AndyAyersMS wants to merge 1 commit intodotnet:mainfrom
AndyAyersMS:FixSpmiScript

Conversation

@AndyAyersMS
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings December 17, 2025 21:06
@github-actions github-actions bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Dec 17, 2025
@AndyAyersMS
Copy link
Member Author

@adamperlin ptal
cc @dotnet/jit-contrib

Fixes issue noted in #122425 (comment)

@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a control flow bug in the determine_jit_name function where the wasm target architecture check was incorrectly using if instead of elif, causing it to be evaluated independently rather than as part of the mutually exclusive conditional chain.

Key Changes

  • Corrected the conditional chain for determining JIT OS name by changing if target_arch.startswith("wasm") to elif target_arch.startswith("wasm")

adamperlin added a commit to adamperlin/runtime that referenced this pull request Dec 17, 2025
@AndyAyersMS
Copy link
Member Author

We ended up pulling this into #122425 so it could be properly tested.

@github-actions github-actions bot locked and limited conversation to collaborators Jan 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants