* fix(gcc)

* use heads / add 10.5

* cc1 segfaults on linux/x86-64

* more flags

* derp
This commit is contained in:
Jacob Heider 2023-08-16 00:45:25 -04:00 committed by GitHub
parent 844e304947
commit 780d42c96f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,8 +74,10 @@ build:
PATCH122: https://raw.githubusercontent.com/Homebrew/formula-patches/1d184289/gcc/gcc-12.2.0-arm.diff
# https://github.com/iains/gcc-darwin-arm64
PATCH131: https://raw.githubusercontent.com/Homebrew/formula-patches/master/gcc/gcc-13.1.0.diff
BRANCH105: https://github.com/iains/gcc-10-branch/archive/refs/heads/gcc-10-5Dr0-pre-0.tar.gz
BRANCH114: https://github.com/iains/gcc-11-branch/archive/refs/tags/gcc-11.4-darwin-r0.tar.gz
BRANCH123: https://github.com/iains/gcc-12-branch/archive/refs/tags/gcc-12.3-darwin-r0.tar.gz
BRANCH132: https://github.com/iains/gcc-13-branch/archive/refs/heads/gcc-13-2-darwin.tar.gz
ARGS:
- --prefix={{ prefix }}
- --libdir={{ prefix }}/lib
@ -88,6 +90,10 @@ build:
- --disable-multilib
- --enable-default-pie
- --enable-pie-tools
linux/x86-64:
LDFLAGS: $LDFLAGS -pie
CFLAGS: $CFLAGS -fPIC
CXXFLAGS: $CXXFLAGS -fPIC
darwin:
ARGS:
# Reliance on CLT hard path is yuck.
@ -100,17 +106,17 @@ build:
ARGS:
- --build=x86_64-apple-darwin20.0.0
test: |
gcc --version | grep -q "tea GCC {{version}}"
gcc -print-libgcc-file-name
gcc -print-multiarch
gcc -dumpspecs
gcc -o test1 test.c -lgmp
./test1
g++ -o test2 test.cc
test "$(./test2)" = "Hello, world!"
gfortran -o test3 test.f90
test "$(./test3)" = "Hello, world!"
test:
- gcc --version | grep -q "tea GCC {{version}}"
- gcc -print-libgcc-file-name
- gcc -print-multiarch
- gcc -dumpspecs
- gcc -o test1 test.c -lgmp
- ./test1
- g++ -o test2 test.cc
- test "$(./test2)" = "Hello, world!"
- gfortran -o test3 test.f90
- test "$(./test3)" = "Hello, world!"
provides: