Skip to content

Fix just-clippyw recipe#1561

Merged
ludfjig merged 1 commit into
hyperlight-dev:mainfrom
ludfjig:fix_clippyw
Jun 19, 2026
Merged

Fix just-clippyw recipe#1561
ludfjig merged 1 commit into
hyperlight-dev:mainfrom
ludfjig:fix_clippyw

Conversation

@ludfjig

@ludfjig ludfjig commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Fixes #1559

I use this all the time on linux machine to verify just clippy would pass on windows target

Copilot AI review requested due to automatic review settings June 18, 2026 22:48
@ludfjig ludfjig added the kind/bugfix For PRs that fix bugs label Jun 18, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the surrogate build script to emit appropriate linker arguments for both MSVC and GNU (mingw) Windows toolchains, enabling just clippyw cross-checks from non-Windows hosts (Fixes #1559).

Changes:

  • Detects the target toolchain via CARGO_CFG_TARGET_ENV and branches for gnu vs MSVC.
  • Adds mingw-specific linker args (-nostartfiles, -Wl,-e,..., subsystem) while keeping existing MSVC flags.

Comment thread src/hyperlight_host/src/hyperlight_surrogate/build.rs Outdated
Comment thread src/hyperlight_host/src/hyperlight_surrogate/build.rs Outdated
Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>

@jsturtevant jsturtevant left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Seems reasonable to me

Comment thread src/hyperlight_host/src/hyperlight_surrogate/build.rs
@ludfjig ludfjig merged commit 1b1af85 into hyperlight-dev:main Jun 19, 2026
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bugfix For PRs that fix bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

just clippyw recipe broken

5 participants