Skip to content

fix: target should use includes windows-msvc instead of startsWith#12198

Merged
JSerFeng merged 1 commit intomainfrom
fix/ci
Nov 14, 2025
Merged

fix: target should use includes windows-msvc instead of startsWith#12198
JSerFeng merged 1 commit intomainfrom
fix/ci

Conversation

@JSerFeng
Copy link
Copy Markdown
Contributor

@JSerFeng JSerFeng commented Nov 14, 2025

Summary

fix ci

Related links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings November 14, 2025 07:18
@netlify
Copy link
Copy Markdown

netlify bot commented Nov 14, 2025

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit 6fff1aa
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/6916d7d63107900008307d10

@github-actions github-actions bot added release: bug fix release: bug related release(mr only) team The issue/pr is created by the member of Rspack. labels Nov 14, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a bug in the build script where Windows MSVC targets were not being correctly detected. The condition was using startsWith("windows-msvc") which would never match valid Rust target triples like x86_64-pc-windows-msvc, i686-pc-windows-msvc, or aarch64-pc-windows-msvc. The fix changes the check to use includes("windows-msvc") to properly identify all Windows MSVC targets.

  • Changes the target detection logic from startsWith to includes for matching windows-msvc targets
  • Ensures the -Cforce-unwind-tables=no rustflag is correctly excluded for Windows MSVC builds

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Copy Markdown
Contributor

📦 Binary Size-limit

Comparing 6fff1aa to test: rename test script from 'test:rstest' to 'test:base' (#12194) by neverland

🙈 Size remains the same at 47.45MB

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Nov 14, 2025

CodSpeed Performance Report

Merging #12198 will not alter performance

Comparing fix/ci (6fff1aa) with main (7d4a1a3)

Summary

✅ 17 untouched

@JSerFeng JSerFeng merged commit f3947a7 into main Nov 14, 2025
97 checks passed
@JSerFeng JSerFeng deleted the fix/ci branch November 14, 2025 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: bug fix release: bug related release(mr only) team The issue/pr is created by the member of Rspack.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants