mirror of
https://github.com/darlinghq/cctools-port.git
synced 2024-11-23 12:19:40 +00:00
e837833872
remove unneeded ld/Makefile ld64 *should* now also build without llvm-devel (but disables LTO then)
6 lines
262 B
Bash
Executable File
6 lines
262 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
find . -type f \( -name "*.c" -o -name "*.cpp" -o -name "*.cc" -o -name "*.h" -o -name "*.hpp" \) -print0 | \
|
|
xargs -0 sed -i "s/#include <unistd.h>/#undef __block\n#include <unistd.h>\n#define __block __attribute__((__blocks__(byref)))/g"
|
|
|