Skip to content

Conversation

@cho-m
Copy link
Member

@cho-m cho-m commented Nov 19, 2025

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew lgtm (style, typechecking and tests) with your changes locally?

Since we use this in both std and super, it makes more sense to be in shared.

I don't think we need it on PATH (i.e. no extra symlinks to other super dirs) as it is never directly run but instead executed via RUSTC_WRAPPER

Copilot AI review requested due to automatic review settings November 19, 2025 21:49
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 moves the rustc_wrapper shim script from the super directory to the shared directory, since it's used by both the std and super build environments. This improves code organization by placing shared utilities in the appropriate location.

  • Moved rustc_wrapper script from Library/Homebrew/shims/super/ to Library/Homebrew/shims/shared/
  • Updated both std.rb and super.rb to reference the new location

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
Library/Homebrew/shims/shared/rustc_wrapper New location for the rustc wrapper script that prepends HOMEBREW_RUSTFLAGS to rustc arguments
Library/Homebrew/extend/ENV/super.rb Updated RUSTC_WRAPPER path from super/rustc_wrapper to shared/rustc_wrapper
Library/Homebrew/extend/ENV/std.rb Updated RUSTC_WRAPPER path from super/rustc_wrapper to shared/rustc_wrapper

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

Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

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

Makes sense, thanks!

@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Nov 20, 2025
Merged via the queue into main with commit 4efad25 Nov 20, 2025
43 checks passed
@MikeMcQuaid MikeMcQuaid deleted the rustc_wrapper-shared branch November 20, 2025 08:51
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.

3 participants