Skip to content

fix release builds on Windows and 32-bit Android - #4241

Merged
BaseMax merged 1 commit into
mainfrom
fix-release-windows-android
Nov 25, 2026
Merged

BaseMax merged 1 commit into
mainfrom
fix-release-windows-android

Conversation

@BaseMax

@BaseMax BaseMax commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

The 0.7.1 release run failed on Windows and Android.

  • Windows: glyph returned early under if SALAM_OS_WINDOWS, so on Windows the ret after it is unreachable and the compiler stops with E070. It now picks the string and returns once. salam check compiler/main.salam --target=x86_64-windows reproduced the error and passes now.
  • Android armeabi-v7a: the interpreter declared ioctl with a u64 request while std declares usize. Both headers land in one translation unit, and on 32-bit ARM size_t is not 64 bits, so clang rejects the conflicting types. The interpreter now uses usize like std.

Summary by CodeRabbit

  • Bug Fixes
    • Glyph output now uses the Unicode form by default and the plain form on Windows, providing platform-appropriate display.
    • Linux interpreter handling now uses platform-sized request values for ioctl, improving compatibility across Linux environments.

@BaseMax
BaseMax requested a review from a team as a code owner November 25, 2026 19:12
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The changes update platform-specific glyph selection in the CLI and change the Linux ioctl request parameter type from u64 to usize.

Changes: Glyph selection

Layer / File(s) Summary
Select and return glyph
compiler/cli/cli_init.salam
The function selects the Unicode glyph by default, assigns the plain glyph on Windows, and returns the selected value.

Linux ioctl declaration

Layer / File(s) Summary
Update ioctl request parameter
compiler/interp/interp_static.salam
The Linux ioctl declaration changes req from u64 to usize. Its variadic arguments and return type remain unchanged.

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

Change: Bug fix

Suggested reviewers: bdadmehr0

Merge Risk: Minimal · up to 567f2

The change fixes the Windows glyph compile error and the 32-bit Android ioctl type conflict, with a small, localized, easily reversible diff. No merge-blocking risk is identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names two fixes, release builds on Windows and 32-bit Android. The changeset matches both: the glyph early-return fix in cli_init.salam for Windows, and the ioctl req type change from u64 to…
Description check Passed The description follows the template's main sections: a description of the problem, Windows and Android change details, and a reproduction command for the Windows case. It lacks a Related Issue sectio…
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 two fixes, release builds on Windows and 32-bit Android. The changeset matches both: the glyph early-return fix in cli_init.salam for Windows, and the ioctl req type change from u64 to usize in interp_static.salam for 32-bit Android. The title is specific and concise, so it passes.

Full details: Description check

Explanation

The description follows the template's main sections: a description of the problem, Windows and Android change details, and a reproduction command for the Windows case. It lacks a Related Issue section, a Closes reference, a Checklist, and an Additional Notes section. The Proposed Changes content is present but is written as a problem narrative rather than a list. The section headings are not used. Most critical information is present, so the check passes.

Resolution

Optionally add the template headings, including a Related Issue reference if one exists, and complete the Checklist items.

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: 02ff4a0b-bffe-44b6-929d-f68bdf7baa19
Commits

Reviewing files that changed from the base of the PR and between ae441a3 and 567f2f2.

Files selected for processing: 2

  • compiler/cli/cli_init.salam
  • compiler/interp/interp_static.salam

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

@BaseMax
BaseMax merged commit de948b2 into main Nov 25, 2026
19 checks passed
@BaseMax
BaseMax deleted the fix-release-windows-android branch November 25, 2026 19:21
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