Skip to content

Commit

Permalink
Fix ARM MacOS build (#5662)
Browse files Browse the repository at this point in the history
* Fix ARM MacOS build

* add rosetta 2 comment

(cherry picked from commit 424b2dd)
  • Loading branch information
krasinski committed Oct 12, 2023
1 parent ec6eb8d commit 2d9b49a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/build.gradle
Expand Up @@ -112,6 +112,11 @@ task generateConfiguration(type: JavaExec, dependsOn: [cleanGeneratedConfigurati
}

sphinx {
if (System.getProperty("os.arch") == "aarch64") {
//https://github.com/trustin/sphinx-binary/issues/10
//x86_64 will be handled by Rosetta 2 on a M1/M2 Mac
binaryUrl = "https://github.com/trustin/sphinx-binary/releases/download/v0.8.2/sphinx.osx-x86_64"
}
environments = ["PYTHONWARNINGS" : ""]
if (VersionNumber.parse(sparkVersion) >= VersionNumber.parse(kubernetesSupportSinceSpark)) {
tags = "SupportsKubernetes"
Expand Down

0 comments on commit 2d9b49a

Please sign in to comment.