fix(gcc^13)

This commit is contained in:
Jacob Heider 2023-04-26 15:25:45 -04:00 committed by Jacob Heider
parent 20765569fa
commit 8431d4f67a

View file

@ -33,9 +33,9 @@ build:
rmdir {{deps.gnu.org/gcc.prefix}}/lib64 rmdir {{deps.gnu.org/gcc.prefix}}/lib64
fi fi
# Branch from the Darwin maintainer of GCC, with a few generic fixes and if test -n "$PATCH{{version.major}}"; then
# Apple Silicon support, located at https://github.com/iains/gcc-12-branch curl "$PATCH{{version.major}}" | patch -p1 -d..
curl https://raw.githubusercontent.com/Homebrew/formula-patches/1d184289/gcc/gcc-12.2.0-arm.diff | patch -p1 -d.. fi
ARGS=($ARGS --with-pkgversion="tea GCC {{version}}") ARGS=($ARGS --with-pkgversion="tea GCC {{version}}")
if test {{hw.platform}} = "linux"; then if test {{hw.platform}} = "linux"; then
@ -57,6 +57,11 @@ build:
rmdir lib64 rmdir lib64
fi fi
env: env:
# Branch from the Darwin maintainer of GCC, with a few generic fixes and
# Apple Silicon support, located at https://github.com/iains/gcc-12-branch
PATCH12: https://raw.githubusercontent.com/Homebrew/formula-patches/1d184289/gcc/gcc-12.2.0-arm.diff
# https://github.com/iains/gcc-darwin-arm64
PATCH13: https://raw.githubusercontent.com/Homebrew/formula-patches/master/gcc/gcc-13.1.0.diff
ARGS: ARGS:
- --prefix={{ prefix }} - --prefix={{ prefix }}
- --libdir={{ prefix }}/lib - --libdir={{ prefix }}/lib