Skip to content

Use native MSVC targets in executable frontend regressions #669

Closed

Description

@LunaStev

Observed failure

PR #668, head 69acf7dcc3988a79c086f5b736bf6d21ad30d45e, native Windows x64 CI job.

The new native MSVC ABI/runtime gate passes, and all 70 codegen regressions pass. The following four frontend regressions then fail while linking:

  • generic_aggregates_and_postfix_chains_preserve_runtime_values
  • generic_methods_and_nested_method_receivers_execute_once
  • literal_defaults_compile_and_run_with_their_shared_numeric_values
  • nested_control_flow_retains_truthy_conditions_and_for_initializers

Representative diagnostic:

lld: error: unable to find library -lmingw32
lld: error: unable to find library -lgcc
lld: error: unable to find library -lgcc_eh
lld: error: unable to find library -lmsvcrt

13 frontend tests pass and 4 fail. This is a test target-selection defect, not evidence that these language features require MinGW.

Code evidence and reproduction

On master 0c32b946, the frontend helper and executable tests still invoke wavec build --run without an explicit native target. The public Windows default remains GNU during migration. #668 adjusted the analogous codegen execution helper but not this suite.

From the native x64 MSVC CI environment with its configured SDK/LLVM:

cargo test --locked --test frontend_regressions --no-default-features --features llvm-target-core64 --target x86_64-pc-windows-msvc --jobs 2 -- --nocapture

Scope and acceptance

Difficulty: medium. Select the matching MSVC target for native executable frontend tests when the compiler host uses MSVC; inspect both --run calls and build-then-execute paths. Reuse or factor the existing codegen helper behavior where appropriate.

  • All four failing regressions actually execute and pass on native Windows x64 without MinGW installed.
  • Apply the same selection consistently for native Windows ARM64 execution.
  • Keep explicit cross-target/check-only assertions and public default-target tests intact.
  • Keep Linux/macOS/GNU execution behavior and enabled-LLVM-feature handling intact.
  • Do not install MinGW as a workaround or switch the public default early.

Related: #611 and #625. #487 concerns isolated backend CI coverage; it does not address this native MSVC linker selection failure.

Activity

  1. added
    bug
    migration
    ci
    on Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcimigration

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions