diff --git a/specs/common.anod b/specs/common.anod index aa6eae4..8684842 100644 --- a/specs/common.anod +++ b/specs/common.anod @@ -104,3 +104,7 @@ class Common(Anod): if Env().main_options.enable_cleanup: rm(self["BUILD_DIR"], recursive=True) rm(self["SRC_DIR"], recursive=True) + + @property + def host_is_macos_arm(self): + return self.env.host.os.name == "darwin" and self.env.host.cpu.name == "aarch64" diff --git a/specs/gcc.anod b/specs/gcc.anod index 703e54f..eb8b805 100644 --- a/specs/gcc.anod +++ b/specs/gcc.anod @@ -27,7 +27,7 @@ class GCC(spec("gh-artifact")): url=( "https://ftp.gnu.org/gnu/gcc/gcc-%s/%s" % (self.version, self.tarball) - if self.env.target.cpu.name == "x86_64" + if not self.host_is_macos_arm else "https://github.com/iains/gcc-14-branch/archive/refs/" + "tags/gcc-14.1-darwin-r1.tar.gz"