Skip to content

save: fix remaining macOS and Windows interop checks - #215

Merged
medvednikov merged 2 commits into
masterfrom
fix/ci-native-save-widths-20261031
Nov 3, 2026
Merged

medvednikov merged 2 commits into
masterfrom
fix/ci-native-save-widths-20261031

Conversation

@medvednikov

@medvednikov medvednikov commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

Problem

The current V master macOS Apps job still rejects the C.stat call in copy_file_flags because it is outside an unsafe block.

PR216 has already migrated the deprecated native-size types and improved concurrent macOS metadata copying. This PR is refreshed onto that merged work and now contains only the remaining save interop corrections.

Change

  • Enclose the macOS C.stat call in its required unsafe block.
  • Match GetFileInformationByHandle's existing os declaration with an i32 return value, and test it for nonzero success.

The refresh preserves PR216's implementation and resolves the branch conflicts. The earlier alias-specific width test and typedef changes are superseded by PR216's native int/uint migration; they are no longer part of this PR. Existing upstream save tests are unchanged.

Validation

With V master 8636a8fe6c2d285f6bb60ad5686b6ffda61f9835:

  • macOS production frontend checking passes with fallback disabled.
  • Windows production frontend checking passes with fallback disabled.
  • The macOS unsafe-call diagnostic is gone.
  • Formatting and diff checks pass.

These checks validate the final refreshed patch. Native macOS and Windows execution was not available; the broader Linux build/test results recorded before this refresh were for the earlier version and are not presented as final-tree runtime validation.

Linux autofree follow-up

The Ubuntu job's generated-C cleanup failure in draw_text_line_standard_syntax is a compiler scope-accounting defect, addressed by vlang/v#31766. The unchanged Ved head cd82b857c5e65de987da6ca6633e11240cea3a07 now builds natively on Linux with both -new-compiler -autofree -cc gcc and -new-compiler -prod -cc gcc using that compiler fix. The compiler PR also includes destruction-order regressions and passes all 11 focused autofree test files. Hosted Linux validation still requires the compiler fix to land.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T00:08:47.534586Z cd82b85 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@medvednikov medvednikov changed the title save: preserve native word types with current V save: fix remaining macOS and Windows interop checks Nov 3, 2026
@medvednikov
medvednikov merged commit f722219 into master Nov 3, 2026
6 of 8 checks passed
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