-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RUSTFLAGS override .cargo/config.toml and result in manual workarounds #18556
Comments
Opening issue to align to the comment I updated in
Specifically caused by superenv now setting brew/Library/Homebrew/extend/ENV/super.rb Line 65 in 3291ad4
I recall there was an ask in Not sure what is best way to handle this to avoid manual workarounds (which increase formula maintenance to align with upstream) while also optimizing to specific microarchitecture. |
To be clear: we're producing the same bottle regardless of where it's built, right? |
Yes. Microarchitecture as in our superenv oldest CPU architecture (Core2 and Nehalem), not native arch. |
Cargo issue was rust-lang/cargo#5376. There doesn't seem to be a clean way to add extra RUSTFLAGS yet. May need to be done via a |
Would |
Using a shim may allow us to still pass in |
Yeah a They even went as far as ship it as a part of their cargo package: https://salsa.debian.org/rust-team/cargo/-/blob/debian/sid/debian/bin/cargo (we won't do this - just demonstrating how others have had to resort to wrappers too) |
Shim is probably the easiest, and is kind of supported by the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
brew doctor
outputVerification
brew doctor
output" above saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
twice and am still able to reproduce my issue.brew install wget
. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.brew config
outputWhat were you trying to do (and why)?
Building bottle in CI, e.g. Homebrew/homebrew-core#179360
What happened (include all command output)?
Failure when building due to overridden .cargo/config.toml:
What did you expect to happen?
Successful build without any extra workarounds.
Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: