From 61f2e7cf17a67cee6d4df3afa73805f19d418b4a Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Tue, 25 Jun 2024 17:30:03 -0400 Subject: [PATCH] fix(gcc) some of the GHA runners have incomplete SDKs --- projects/gnu.org/gcc/package.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/projects/gnu.org/gcc/package.yml b/projects/gnu.org/gcc/package.yml index 092aa5da..2b664d80 100644 --- a/projects/gnu.org/gcc/package.yml +++ b/projects/gnu.org/gcc/package.yml @@ -126,6 +126,13 @@ test: - gcc -print-libgcc-file-name - gcc -print-multiarch - gcc -dumpspecs + # gha mac runners have broken SDKs... + - run: | + if ! -f /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h; then + echo "Missing SDK; skipping remaining tests" + exit 0 + fi + if: darwin - gcc -o test1 test.c -lgmp - ./test1 - g++ -o test2 test.cc