Skip to content

build: bundle imm32 and powrprof for Windows - #4293

Merged
BaseMax merged 1 commit into
mainfrom
fix-win-imm32
Nov 27, 2026
Merged

BaseMax merged 1 commit into
mainfrom
fix-win-imm32

Conversation

@BaseMax

@BaseMax BaseMax commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Native UI apps on Windows failed to link with unable to find library -limm32, then rebuilt through the C backend.

Add libimm32.a and libpowrprof.a to the bundled Windows libraries. The Linux arm64 build also gets the other import libraries it was missing for Windows cross builds.

Checked by cross-linking a native UI app against only the bundled set: fails without the two libraries, links with no warnings with them. Release packaging itself was not run.

Summary by CodeRabbit

  • Build & Packaging
    • Windows and Windows Arm packages now include additional system libraries for input, power management, setup, networking, security, and other platform features.
    • Linux aarch64 build artifacts now stage a broader set of Windows libraries, improving support for cross-platform builds and packaging.

@BaseMax
BaseMax requested a review from a team as a code owner November 27, 2026 08:39
@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The workflow and shell scripts add MinGW libraries to sysroot staging and Windows package lists. Optional libraries are copied when available.

Changes: MinGW library staging and packaging

Layer / File(s) Summary
Stage MinGW libraries
.github/workflows/compiler-release.yml, tools/bash/stage-sysroots.sh
The workflow and sysroot staging script add MinGW libraries to their staging lists. The scripts copy optional libraries when available.
Include libraries in Windows packages
tools/bash/package-native.sh, tools/bash/package-winarm.sh
The Windows package library lists add libimm32.a and libpowrprof.a.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix

Merge Risk: Minimal · up to cd0a0

This change bundles two more Windows import libraries so native UI apps can link, and it follows the existing optional-copy pattern for libraries. No concrete defect was found. The Linux aarch64 release job copies a list of libraries without a missing-file guard, and a missing file would fail that step. Normal release-run checks will show whether that happens.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the Windows bundle now includes imm32 and powrprof libraries. The changeset adds libimm32.a and libpowrprof.a to the Windows packaging and sysroot scripts, which match…
Description check Passed The description states the problem (native UI apps fail to link with unable to find library -limm32), the fix (adding libimm32.a and libpowrprof.a to the bundled Windows libraries), and the extra Linu…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: the Windows bundle now includes imm32 and powrprof libraries. The changeset adds libimm32.a and libpowrprof.a to the Windows packaging and sysroot scripts, which matches the title. The title is short, specific, and uses the conventional build: prefix.

Full details: Description check

Explanation

The description states the problem (native UI apps fail to link with unable to find library -limm32), the fix (adding libimm32.a and libpowrprof.a to the bundled Windows libraries), and the extra Linux arm64 import libraries. It also describes how the change was checked. It omits the template's Related Issue section, the Proposed Changes list, and the Checklist, and it does not show test commands. The core content is present, so the description is mostly complete.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8d3b4002-a614-4f47-b2a9-5d7fa74efb50
Commits

Reviewing files that changed from the base of the PR and between 25c1c8a and cd0a099.

Files selected for processing: 4

  • .github/workflows/compiler-release.yml
  • tools/bash/package-native.sh
  • tools/bash/package-winarm.sh
  • tools/bash/stage-sysroots.sh

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

@BaseMax
BaseMax merged commit 647a13a into main Nov 27, 2026
18 checks passed
@BaseMax
BaseMax deleted the fix-win-imm32 branch November 27, 2026 09:13
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