Skip to content
Open

fix(gcc) #13125

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion projects/gnu.org/gcc/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ build:
# Remove old frame registration symbols from darwin-unwind.ver (GCC 15+ doesn't provide these)
- patch -p1 < props/remove-old-frame-symbols-darwin.patch
- fi
if: ">=15.2"
if: "^14.2 || >=15.2"
working-directory: ..

# The spaces mess things up in the env key
Expand Down Expand Up @@ -141,6 +141,22 @@ build:
fi
if: linux

# fixincludes can emit a malformed stdio.h against newer macOS SDKs,
# leaving FILE, fpos_t, and size_t undefined for downstream builds.
- run: |
for hdr in lib/gcc/*/*/include-fixed/stdio.h; do
test -f "$hdr" || continue
if grep -q 'extern FILE \*__stdinp' "$hdr" && ! grep -q '#include <_stdio.h>' "$hdr"; then
sed -i -f $PROP "$hdr"
fi
done
prop: |
/#define .*STDIO/a\
#include <stddef.h>\
#include <_stdio.h>
if: darwin
working-directory: ${{prefix}}

# Since we depend on ourselves, this symlink might already exist
- run: test -f gc++ || ln -sf c++ gc++
working-directory: ${{prefix}}/bin
Expand Down
Loading