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
Reject compiler dry-run plans for a different explicitly requested target #165
bugSomething isn't workingbuildIssues related to building projects or integrating with wavec.good first issueIssues that are good for newcomers or first-time contributors.wave compatibilityIssues related to compatibility with the Wave language, module system, and wavec contracts.
Audited against merged master 13289d7a74ad45561554bbb6673a189dbb192a27 (PR #161).
Problem and reproduction
Vex checks that an explicit target appears in the compiler's supported-target list, but does not compare that request with the returned dry-run plan's target.
Reproduced with a compiler fixture advertising both Linux and Windows targets while always returning a structurally valid Linux plan:
Observed: exit 0 and JSON with "target": "x86_64-unknown-linux-gnu". This can conceal a compiler/adapter target-selection error.
Scope and acceptance
Validate an explicit supported target against the returned plan before accepting or executing it.
If the compiler uses documented equivalent aliases, compare their canonical target identity; the Linux-versus-Windows case must be rejected.
Report requested and returned targets as a compiler-contract error (exit 4).
Test mismatching and matching plans, both CLI target syntaxes, and an invocation without an explicit target.
Reuse the check in doctor where it validates an explicitly targeted plan. Do not redesign target discovery or infer a target merely from the host's Rust triple.
Use fake compiler fixtures so the negative case needs no cross compiler.
bugSomething isn't workingbuildIssues related to building projects or integrating with wavec.good first issueIssues that are good for newcomers or first-time contributors.wave compatibilityIssues related to compatibility with the Wave language, module system, and wavec contracts.
Activity