Skip to content

Commit

Permalink
scipy: fix for Big Sur (#67529)
Browse files Browse the repository at this point in the history
  • Loading branch information
fxcoudert authored Dec 23, 2020
1 parent bdd7b9f commit dfa1b2e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Formula/scipy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ class Scipy < Formula
cxxstdlib_check :skip

def install
# Fix for current GCC on Big Sur, which does not like 11 as version value
# (reported at https://github.com/iains/gcc-darwin-arm64/issues/31#issuecomment-750343944)
ENV["MACOSX_DEPLOYMENT_TARGET"] = "11.0" if MacOS.version == :big_sur

openblas = Formula["openblas"].opt_prefix
ENV["ATLAS"] = "None" # avoid linking against Accelerate.framework
ENV["BLAS"] = ENV["LAPACK"] = "#{openblas}/lib/#{shared_library("libopenblas")}"
Expand Down

0 comments on commit dfa1b2e

Please sign in to comment.