Skip to content

Commit f612c69

Browse files
committed
Merge pull request #771 from hashdist/gcc_osx
gcc: install fixed dispatch/object.h header file
2 parents 9ce0f13 + bf22173 commit f612c69

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

pkgs/gcc/gcc.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ 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+
if [ -f /usr/include/dispatch/object.h ]; then
31+
mkdir -p "$ARTIFACT/include/dispatch"
32+
sed 's+typedef void (\^dispatch_block_t)(void)+typedef void* dispatch_block_t+' /usr/include/dispatch/object.h > "$ARTIFACT/include/dispatch/object.h"
33+
fi
34+
2535
- name: link_lib64_to_lib
2636
after: install
2737
handler: bash

0 commit comments

Comments
 (0)