From e891749956af31225e589e66d6513695355811af Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Wed, 16 Mar 2022 11:31:02 +0100 Subject: Small updates to gradle versions --- main/build.gradle.kts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'main') 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" -- cgit v1.2.3