Skip to content

cmd: validate explicit C compiler before dispatch - #27871

Open
GitHackerz wants to merge 2 commits into
vlang:masterfrom
GitHackerz:fix-cc-validation-order
Open

cmd: validate explicit C compiler before dispatch#27871
GitHackerz wants to merge 2 commits into
vlang:masterfrom
GitHackerz:fix-cc-validation-order

Conversation

@GitHackerz

Copy link
Copy Markdown

What

Validate an explicitly selected C compiler before command dispatch on Windows.

Why

An invalid -cc value could reach command handling first when no command or an invalid command was supplied, hiding the useful missing-compiler diagnostic. This reuses the existing Windows C-compiler validation and adds a regression test for both cases.

Fixes #27868

Tests

  • v test-all
  • v test cmd/v/v_windows_test.v

@medvednikov

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e470ea5181

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread cmd/v/v.v Outdated
@medvednikov

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b28e283703

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread cmd/v/v.v
@GGRei

GGRei commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

@codex review take the author’s reply in the second review thread into account before reviewing again. Builder.pref is declared under pub mut:, so its cross-module initialization is valid. Please do not repeat that finding unless you have new concrete evidence.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: b28e283703

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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.

CLI validates commands before checking -cc flag validity, resulting in "unknown command ''"

3 participants