-
Notifications
You must be signed in to change notification settings - Fork 120
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
fasttree: replace gcc dependency with libomp #1123
Conversation
Formula/fasttree.rb
Outdated
end | ||
|
||
def install | ||
opts = %w[-O3 -finline-functions -funroll-loops] | ||
opts << "-DOPENMP" << "-fopenmp" if build.with? "openmp" | ||
opts << "-DOPENMP" << "-L#{Formula["libomp"].opt_lib}" << "-lomp" if build.with? "openmp" |
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.
libomp
shouldn't be used on Linux.
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.
Oh yeah whoops
Formula/fasttree.rb
Outdated
@@ -21,13 +22,14 @@ class Fasttree < Formula | |||
option "without-sse", "Disable SSE parallel instructions" |
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.
You can remove these options if you like.
Formula/fasttree.rb
Outdated
depends_on "gcc" if OS.mac? # needs openmp | ||
on_macos do | ||
depends_on "libomp" | ||
end |
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.
on_macos
should go on the outside of the if
.
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.
You can remove the if build.with?
though if you remove the options.
What should we do for broken dependents? |
https://github.com/brewsci/homebrew-bio/pull/1123/checks?check_run_id=908545358#step:5:121 In a separate PR bump I have a concept that I call "long shelf life bottles". Basically bumping a formulae in Homebrew/core should not cause breakage in bottles of third party taps. I'd really like this to be a feature of Homebrew 3. Happy to discuss more in Slack. Please record all the formulae that caused breakage in Brewsci/bio. |
https://github.com/brewsci/homebrew-bio/pull/1123/checks?check_run_id=908545349#step:4:118 Merge the |
5eac855
to
e05f280
Compare
e05f280
to
60e896a
Compare
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.
Build with SSE.
Co-authored-by: Shaun Jackman <[email protected]>
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.
Thank you, Seeker!
brew install --build-from-source FORMULA
, whereFORMULA
is the name of the formula you're submitting?brew audit --strict FORMULA
(after doingbrew install FORMULA
)?Formulae that might need to be bumped: