Skip to content

macos: restore TCC defaults and fix V1 release installation - #31382

Merged
medvednikov merged 1 commit into
vlang:masterfrom
medvednikov:codex/fix-postmerge-validation-20261029
Oct 29, 2026
Merged

medvednikov merged 1 commit into
vlang:masterfrom
medvednikov:codex/fix-postmerge-validation-20261029

Conversation

@medvednikov

Copy link
Copy Markdown
Member

Restore bundled TCC as the default for regular macOS builds and v self, including Darwin 27. Remove the historical Darwin-version veto from driver selection, test-build facts and bootstrap, preserve explicit compiler overrides and the existing production/debug/race constraints, and retain the public compatibility helpers.

Fix legacy V 0.5.2 installation by preferring bsdtar after checksum verification: Apple's unzip rejects the official archive's absolute libc.dylib symlink and otherwise forces a failing source-build fallback. Add an offline end-to-end installer regression and an actual TCC zero-initialized-globals regression. Keep all 5,000 cases in the dense-match regression and put flags before its input file.

Validation on macOS 27 arm64:

  • Three consecutive plain ./v self builds select -cc tcc and pass; all produce the same compiler SHA256.
  • Full driver CLI, compiler-selection, implicit-TCC preflight/fallback, self-tool and atomic-fence test files pass.
  • The 5,000-case match test passes; a separate -showcc compile confirms TCC and its executable passes.
  • Both new regressions, all seven previously failing legacy diagnostic fixtures, dump regressions, preserved preference API tests, README check-md, and installer shell syntax pass.
  • Real installation from the checksum-verified official V 0.5.2 macOS archive succeeds in a fresh private cache. Temporary inputs and caches stay inside an isolated checkout.

Merge prerequisite: publish corrected macOS TCC bundles. The currently published arm64 tccbin head 9792ded184adcea3254855e5ffb7abe587887a29 still has the old binary: the regression observes 13,567 nonzero BSS bytes. Validation used a locally rebuilt TinyCC 85ba3ae8f1e22044255d54c28be04e5fc3e88ae0, built by the existing patched ARM64 recipe with new_macho=no, binary SHA256 156b3996ee40b513d8be64403c2f2b1fe2ab9b09893c0da4a96b2765b612d92d. That rebuild passes executable/library BSS, relocation and signing checks. The matching Intel recipe change (apply the existing page-count patch and use new_macho=no) is prepared and passed BSS, relocation and signing checks under Rosetta. It awaits the approval required by AGENTS.md before editing tracked thirdparty/ files. The published Intel bundle and native Intel runtime remain unvalidated.

The explicit AppleClang large-match failure was isolated to its parser stack limit: identical generated C succeeds with a larger stack. Restoring the TCC default makes the complete regression pass; this PR does not claim a Clang code-generation fix. Broad suites remain deferred until the PRs are merged.

Refs #29744 and #29745.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 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 ⚠️ Failed 2026-10-29T03:42:17.136756Z
We couldn’t complete this review. Comment @codex review to try again.
7c77903 PR opened
ℹ️ 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 merged commit baa94f8 into vlang:master Oct 29, 2026
7 of 124 checks passed
quaesitor-scientiam added a commit to quaesitor-scientiam/graphify that referenced this pull request Oct 29, 2026
Since vlang/v#31382, V's plain builds on macOS use TCC again, and the MCP
server built that way starts in about 7 s and answers 3-6x slower than a
-prod build, which now takes 29 s to build rather than 3 min 14 s.

Co-authored-by: Richard Wheeler <Richard.Wheeler@rjew.info>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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