chore(native_comp): add GNU-based tools to PATH in patched GCC helper script

An attempt at resolving #8 by getting the GCC compilation step to have
GNU-based `sed` and other commands available. At the very least, I'm
assuming this won't break things. Fingers crossed.
This commit is contained in:
2020-08-30 15:25:46 +01:00
parent d1e6ff5c76
commit b07fe4bf2b

View File

@@ -9,6 +9,18 @@ if [ ! -f "$formula" ]; then
exit 1
fi
gnubins=(
"${brewdir}/opt/coreutils/libexec/gnubin"
"${brewdir}/opt/make/libexec/gnubin"
"${brewdir}/opt/gnu-sed/libexec/gnubin"
)
for gnubin in "${gnubins[@]}"; do
if [ -d "$gnubin" ]; then
export PATH="${gnubin}:$PATH"
fi
done
cp "$formula" ./Formula/
patch -f -p1 -i ./Formula/gcc.rb.patch