-
Notifications
You must be signed in to change notification settings - Fork 97
fix(ci): Do not use mold on macos #7321
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
Conversation
📝 WalkthroughWalkthroughThe update refines platform-specific handling in Nix build configurations by conditionally adding the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant NixBuild
participant LinuxPlatform
participant DarwinPlatform
User->>NixBuild: Initiate build
NixBuild->>LinuxPlatform: Check platform
alt Platform is Linux
LinuxPlatform-->>NixBuild: true
NixBuild->>NixBuild: Add mold to nativeBuildInputs
else Platform is Darwin
DarwinPlatform-->>NixBuild: true
NixBuild->>NixBuild: Do not add mold
end
NixBuild->>User: Build proceeds with platform-specific inputs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (2)
🧰 Additional context used🧠 Learnings (3)📓 Common learnings
nix/rust-builder.nix (3)
nix/mkShell.nix (5)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (15)
🔇 Additional comments (4)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this 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 macOS build issue by preventing the mold
linker from being used on macOS platforms. The mold
linker is Linux-specific and causes build failures when included in macOS builds.
- Removes
mold
from the universal native build inputs list - Creates a Linux-specific build inputs list that includes
mold
only for Linux builds - Removes unused ARMv7 Linux dynamic linker path configuration
Comments suppressed due to low confidence (1)
nix/rust-package.nix:74
- [nitpick] The variable name 'linuxNativeBuildInputs' is inconsistent with the existing naming pattern. Consider renaming it to 'linuxNativeBuildInputs' to match the pattern of 'darwinNativeBuildInputs' and 'darwinBuildInputs'.
linuxNativeBuildInputs =
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What the hell is arm64 darwin build?
nixpkgs has changed the platform name to consolidate |
Fix build issue seen at https://github.com/hoprnet/hoprnet/actions/runs/16321167098/job/46099369900