V3 Windows MSVC: path-valued TinyCC compiler detection returns clang for a macOS-target path
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 22/100
Research direction
Start with vlib/v/driver/environment_test.v around line 668, where test_effective_c_compiler_name_detects_path_valued_tcc asserts that effective_c_compiler_name('/opt/tcc/bin/tcc', macos target) returns 'tinyc'. Reproduce on Windows with ./v -cc msvc -silent vlib/v/driver/environment_test.v and compare the results for tcc, tcc.exe, a Windows tcc path and the macOS-target path. Done means the test passes on Windows MSVC and MinGW without changing the expectation to 'clang' or skipping it.
Written by the indexing model from the issue text.
Description
Actual executed master CI failure
On master 5e0c913e60..., Windows MSVC self-tests shard 3 completed at 2026-11-21 12:43 UTC with 1660-test shard failures, including a distinct vlib/v/driver/environment_test.v:668 regression:
fn test_effective_c_compiler_name_detects_path_valued_tcc()
expected: effective_c_compiler_name('/opt/tcc/bin/tcc', pref.target_from('macos','amd64')!) == 'tinyc'
actual: 'clang'
VFLAGS: '-cc msvc'
This is not the same root as the c_source_language_test.v nested Windows LLVM Clang (MSVC-ABI vs MinGW) failure in the same job; the latter received the focused other-actor master patch 0c6065133226 selecting MinGW-compatible GCC on Windows. This compiler name/path test remains unchanged between failing 5e0 and master as of 2026-11-21 12:08 UTC, and no exact fix was identified in that patch. A missing/host-specific path basename or a failed compiler probe is a hypothesis only. Do not change this expectation to clang or skip the test.
Targeted discrimination and repair
Run the original ./v -cc msvc -silent vlib/v/driver/environment_test.v on Windows; compare effective_c_compiler_name results for tcc, tcc.exe, C:\\tools\\tcc.exe, /opt/tcc/bin/tcc, and an actual executable file under Windows when the target is macOS. Instrument whether the classifier uses target-vs-host basename parsing, does an existence/probe check, or inherits VFLAGS. Fix the true compiler selection semantics; retain Windows/macOS cross-target and path-valued checks. Validate Windows MSVC and MinGW GCC original tests, V formatter and self-build before merging. No native Windows repro or repair is claimed yet.
[!NOTE]
You can use the 👍 reaction to increase the issue's priority for developers.Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
- Dominant language
- V
- Stars
- 38.1k
- Forks
- 2.3k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 682
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from vlang/v
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
swc-project/swc-next-issues#817 ·
-
Magma mode: div:=, mod:= and the other keyword assignments (join:=, meet:=, diff:=, sdiff:=, and:=, or:=, xor:=) are refusedPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
sagemathinc/sagebrush#1683 ·
Maintainers usually reply within 1 day
-
microts: a model local that every branch assigns raises unused_assignments in the generated RustOpenbug
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
pocket-stack/pocketjs#756 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
leanprover/lean4#16681 ·
Maintainers usually reply within 1 day
-
bot-triaged module: aotinductor module: compile-time module: inductor module: performance module: rocm oncall: export oncall: pt2 triaged
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day