some of the GHA runners have incomplete SDKs
This commit is contained in:
Jacob Heider 2024-06-25 17:30:03 -04:00
parent 625b45db12
commit 61f2e7cf17
No known key found for this signature in database
GPG key ID: 51E3FD0EE62677B6

View file

@ -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