Skip to content

Commit 6fff3ac

Browse files
committed
gcc: install fixed dispatch/object.h header file
Fixes #742.
1 parent 6a0c174 commit 6fff3ac

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

pkgs/gcc/gcc.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ build_stages:
2222
patch -up1 < _hashdist/rpath.patch
2323
sed -i "s|@@ARTIFACT@@|${ARTIFACT}|g" gcc/config/i386/gnu-user.h gcc/config/i386/gnu-user64.h
2424
25+
- when: platform == 'Darwin'
26+
name: fix_object_h
27+
before: configure
28+
handler: bash
29+
bash: |
30+
mkdir -p "$ARTIFACT/include/dispatch"
31+
sed 's+typedef void (\^dispatch_block_t)(void)+typedef void* dispatch_block_t+' /usr/include/dispatch/object.h > "$ARTIFACT/include/dispatch/object.h"
32+
2533
- name: link_lib64_to_lib
2634
after: install
2735
handler: bash

0 commit comments

Comments
 (0)