Skip to content

Commit

Permalink
Also check for "arm" for Apple silicon dlopen hack
Browse files Browse the repository at this point in the history
We also switch member -> isMember
  • Loading branch information
d-torrance authored and Anton Leykin committed Sep 11, 2023
1 parent 0a631c8 commit 5d1a113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion M2/Macaulay2/packages/ForeignFunctions.m2
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ net SharedLibrary := lib -> lib#1
-- dlopen fails
importFrom_Core {"isAbsolutePath"}
if (version#"operating system" == "Darwin" and
member(version#"architecture", {"aarch64", "arm64"}))
isMember(version#"architecture", {"aarch64", "arm", "arm64"}))
then (
brewPrefix := replace("\\s+$", "", get "!brew --prefix");
dlopen' = filename -> (
Expand Down

0 comments on commit 5d1a113

Please sign in to comment.