Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

rust: Add --with-llvm option #44138

Closed
wants to merge 1 commit into from
Closed

rust: Add --with-llvm option #44138

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Sep 19, 2015

--with-llvm allows Homebrew's LLVM to be used instead of Rust's LLVM.

@ghost ghost mentioned this pull request Sep 19, 2015
@DomT4
Copy link
Contributor

DomT4 commented Sep 19, 2015

I've kicked this off our CI for now. We don't test non-default options so the changes in this PR wouldn't actually be reviewed.

@@ -31,8 +31,11 @@ class Rust < Formula
sha256 "04f68ef26b4ca636b35be1d17ad2b641727bbc10cec52582a9e3a64b5784dbeb" => :mavericks
end

option "with-llvm", "Build with brewed LLVM"
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we call this with-brewed-llvm (like the git formula does), to make sure users don't think that otherwise somehow their Rust won't have LLVM at all?

Copy link
Author

Choose a reason for hiding this comment

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

Yes, that sounds much more clear. In the new commit the option is renamed and a better explanation of the option is added.

Copy link
Member

Choose a reason for hiding this comment

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

I think actually with-llvm makes more sense and we should move more formulae to use that approach.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah. We can always make the description as it was, to be explicit about the brewed element. I really dislike if build.with? style dependencies.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh right, that way we can just do depends_on "llvm" => :optional. Sounds good.

Copy link
Author

Choose a reason for hiding this comment

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

I have now uploaded a new commit that changes the option name back to --with-llvm, and keeps the more descriptive description.

@ghost ghost changed the title rust: Add --with-llvm option rust: Add --with-brewed-llvm option Sep 19, 2015
--with-llvm allows Homebrew's LLVM to be used instead of Rust's LLVM.
@ghost ghost changed the title rust: Add --with-brewed-llvm option rust: Add --with-llvm option Sep 21, 2015
@ghost
Copy link
Author

ghost commented Oct 16, 2015

ping

@DomT4
Copy link
Contributor

DomT4 commented Oct 17, 2015

Thanks for the nudge. Merged in 4cd4135. Thank you for your contribution to Homebrew @dtrebbien! 😺

@DomT4 DomT4 closed this in 4cd4135 Oct 17, 2015
@Homebrew Homebrew locked and limited conversation to collaborators Jul 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants