From 1b4f16216c4d6dd873ee2d10abd2ca627acef2d7 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Tue, 30 May 2023 19:12:47 -0400 Subject: [PATCH] fix(gcc=11.4)[1] looks like his patches mess up linux builds --- projects/gnu.org/gcc/package.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/projects/gnu.org/gcc/package.yml b/projects/gnu.org/gcc/package.yml index 32090c0b..a9fa96c7 100644 --- a/projects/gnu.org/gcc/package.yml +++ b/projects/gnu.org/gcc/package.yml @@ -30,14 +30,18 @@ build: script: # If we have a patch, apply it - | - if test -n "$PATCH{{version.major}}{{version.minor}}"; then - curl "$PATCH{{version.major}}{{version.minor}}" | patch -p1 -d.. + if test "{{hw.platform}}+{{hw.arch}}" = "darwin+aarch64"; then + if test -n "$PATCH{{version.major}}{{version.minor}}"; then + curl "$PATCH{{version.major}}{{version.minor}}" | patch -p1 -d.. + fi fi # if there's no diff yet, unpack iains' source over ours - | - if test -n "$BRANCH{{version.major}}{{version.minor}}"; then - curl -L "$BRANCH{{version.major}}{{version.minor}}" | tar xz --strip-components=1 -C .. + if test "{{hw.platform}}+{{hw.arch}}" = "darwin+aarch64"; then + if test -n "$BRANCH{{version.major}}{{version.minor}}"; then + curl -L "$BRANCH{{version.major}}{{version.minor}}" | tar xz --strip-components=1 -C .. + fi fi # The spaces mess things up in the env key