Skip to content

fix: triple with windows-msvc doesn't support -Cforce-unwind-tables=no#12196

Merged
JSerFeng merged 1 commit intomainfrom
chore/disable-force-unwind-table-for-windows
Nov 14, 2025
Merged

fix: triple with windows-msvc doesn't support -Cforce-unwind-tables=no#12196
JSerFeng merged 1 commit intomainfrom
chore/disable-force-unwind-table-for-windows

Conversation

@JSerFeng
Copy link
Copy Markdown
Contributor

@JSerFeng JSerFeng commented Nov 14, 2025

Summary

Triple with windows-msvc doesn't support -Cforce-unwind-tables=no, need not use this rust flag in these triples

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 05:06
@netlify
Copy link
Copy Markdown

netlify bot commented Nov 14, 2025

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit 7a34794
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/6916bfc0480af0000860ae71

@github-actions github-actions bot added team The issue/pr is created by the member of Rspack. release: bug fix release: bug related release(mr only) labels Nov 14, 2025
@JSerFeng JSerFeng requested a review from quininer November 14, 2025 05:07
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 attempts to fix a compatibility issue where the Rust compiler flag -Cforce-unwind-tables=no is not supported on Windows MSVC targets. The change adds a conditional check to exclude this flag when building for windows-msvc platforms.

Key changes:

  • Added conditional logic to check the target platform before applying the -Cforce-unwind-tables=no flag during release builds
  • The flag is only applied if the target is set and doesn't start with "windows-msvc"

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

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Nov 14, 2025

📦 Binary Size-limit

Comparing 7a34794 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 #12196 will not alter performance

Comparing chore/disable-force-unwind-table-for-windows (7a34794) with main (d2ae8f2)

Summary

✅ 17 untouched

@JSerFeng JSerFeng force-pushed the chore/disable-force-unwind-table-for-windows branch from 529ea97 to 7a34794 Compare November 14, 2025 05:35
@JSerFeng JSerFeng merged commit 7d4a1a3 into main Nov 14, 2025
76 of 86 checks passed
@JSerFeng JSerFeng deleted the chore/disable-force-unwind-table-for-windows branch November 14, 2025 07:11
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.

4 participants