Skip to content

Conversation

@quininer
Copy link
Contributor

Summary

Currently build.js does not append flags for dev profile.

Related links

Checklist

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

Copilot AI review requested due to automatic review settings October 21, 2025 03:42
@netlify
Copy link

netlify bot commented Oct 21, 2025

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit 74640a8
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/68f7010f5542a60008e3880e

Copy link
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 where rustflags were not being properly applied when building with the dev profile. The issue occurred because the condition for appending rustflags only checked for specific release profiles, inadvertently excluding the dev profile and other non-release configurations.

Key changes:

  • Introduced a use_build_std variable to centralize profile checks for build-std optimization
  • Modified the condition for appending rustflags to include cases where rustflags.length > 0, ensuring flags are applied regardless of profile

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Oct 21, 2025
@github-actions
Copy link
Contributor

📦 Binary Size-limit

Comparing 74640a8 to perf: replace node:assert with explicit error checks (#11928) by neverland

🙈 Size remains the same at 47.73MB

@codspeed-hq
Copy link

codspeed-hq bot commented Oct 21, 2025

CodSpeed Performance Report

Merging #11936 will not alter performance

Comparing x/dev-build-flags (74640a8) with main (b01417b)

Summary

✅ 17 untouched

@quininer quininer merged commit 4f8415a into main Oct 21, 2025
51 checks passed
@quininer quininer deleted the x/dev-build-flags branch October 21, 2025 04:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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