Skip to content

test(msvc): inspect linker arguments in independence assertion - #582

Merged
LunaStev merged 1 commit into
wavefnd:masterfrom
Visio-Vanitas:fix/linker-entry-dialect-and-msvc-assertion
Sep 11, 2026
Merged

LunaStev merged 1 commit into
wavefnd:masterfrom
Visio-Vanitas:fix/linker-entry-dialect-and-msvc-assertion

Conversation

@Visio-Vanitas

@Visio-Vanitas Visio-Vanitas commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Refines the MSVC independence regression test assertion in explicit_msvc_targets_emit_coff_and_link_without_mingw to inspect specific linker flags (-Wl,, -lmingw, -lgcc, -lmsvcrt) rather than rejecting the substring mingw anywhere in the rendered plan string.

This prevents false rejections when lld-link is installed under host directories containing mingw (such as in MSYS2/MinGW Windows CI environments).

Fixes #571

@LunaStev

Copy link
Copy Markdown
Member

The #571 test change looks good.

However, #572 has already been implemented on master by #574. The current auto-merge result keeps both implementations, causing explicit entry arguments to be emitted twice for some linker paths.

Could you drop the src/cli.rs entry-point changes and keep the #571 regression fix?

Inspect link arguments (-Wl, -lmingw, -lgcc, -lmsvcrt) instead of
rejecting substring 'mingw' in rendered plan, avoiding false rejections
when lld-link is located under a MinGW-named host path.

Fixes wavefnd#571

Signed-off-by: Visio Vanitas <[email protected]>
@Visio-Vanitas
Visio-Vanitas force-pushed the fix/linker-entry-dialect-and-msvc-assertion branch from 40bc5f1 to 39626c8 Compare September 11, 2026 11:46
@Visio-Vanitas Visio-Vanitas changed the title fix(cli): route explicit entry point by linker dialect and refine MSVC assertions test(msvc): inspect linker arguments in independence assertion Sep 11, 2026
@Visio-Vanitas

Copy link
Copy Markdown
Contributor Author

Sorry for missing the update on master with #574!

I have rebased on the latest master, dropped the src/cli.rs changes, and kept only the #571 regression assertion refinement in tests/codegen_regressions.rs.

@LunaStev

Copy link
Copy Markdown
Member

LGTM, Thank you. Once the CI is complete, I’ll merge it.

@LunaStev
LunaStev merged commit 4a1328f into wavefnd:master Sep 11, 2026
24 of 26 checks passed
@LunaStev LunaStev mentioned this pull request Sep 30, 2026
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.

Make MSVC linker independence assertions inspect the driver and arguments

2 participants