summaryrefslogtreecommitdiff
path: root/main/build.gradle.kts
diff options
context:
space:
mode:
Diffstat (limited to 'main/build.gradle.kts')
-rw-r--r--main/build.gradle.kts8
1 files changed, 5 insertions, 3 deletions
diff --git a/main/build.gradle.kts b/main/build.gradle.kts
index 355a429e..18591e8a 100644
--- a/main/build.gradle.kts
+++ b/main/build.gradle.kts
@@ -120,9 +120,11 @@ android {
}
var swigcmd = "swig"
-// Workaround for Mac OS X since it otherwise does not find swig and I cannot get
-// the Exec task to respect the PATH environment :(
-if (File("/usr/local/bin/swig").exists())
+// Workaround for macOS(arm64) and macOS(intel) since it otherwise does not find swig and
+// I cannot get the Exec task to respect the PATH environment :(
+if (file("/opt/homebrew/bin/swig").exists())
+ swigcmd = "/opt/homebrew/bin/swig"
+else if (file("/usr/local/bin/swig").exists())
swigcmd = "/usr/local/bin/swig"