Skip to content

Commit

Permalink
11.1 for arm64 macOS and 11.0 for amd64 macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed May 15, 2024
1 parent 77e33e2 commit 092af70
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/install_KLU_Sundials.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,12 @@ def parallel_download(urls, download_dir):
# Build in parallel wherever possible
os.environ["CMAKE_BUILD_PARALLEL_LEVEL"] = str(cpu_count())

# Set macOS environment variables for compatibility
os.environ["MACOSX_DEPLOYMENT_TARGET"] = "11.0"
# Set macOS environment variables for compatibility. this is set to
# 1. 11.1 for arm64 (libcasadi.dylib), and
# 2. 11.0 for x86_64 (libomp.dylib)
os.environ["MACOSX_DEPLOYMENT_TARGET"] = (
"11.1" if platform.machine == "arm64" else "11.0"
)

# Create download directory in PyBaMM dir
pybamm_dir = os.path.split(os.path.abspath(os.path.dirname(__file__)))[0]
Expand Down

0 comments on commit 092af70

Please sign in to comment.