You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix release builds on Windows and 32-bit Android - #4241
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.
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: 4
Check name
Status
Explanation
Title check
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
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
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.
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.
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
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.
The 0.7.1 release run failed on Windows and Android.
glyphreturned early underif SALAM_OS_WINDOWS, so on Windows theretafter 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-windowsreproduced the error and passes now.ioctlwith au64request while std declaresusize. Both headers land in one translation unit, and on 32-bit ARMsize_tis not 64 bits, so clang rejects the conflicting types. The interpreter now usesusizelike std.Summary by CodeRabbit
ioctl, improving compatibility across Linux environments.