Commit 8ed46b76 authored by Alan Third's avatar Alan Third
Browse files

Remove hardcoded gcc version

* Use 'find' to find the brew installed libgccjit libs
instead of a hardcoded path.
parent a9b9ada6
Pipeline #10247 failed with stages
in 169 minutes and 5 seconds
......@@ -3806,8 +3806,10 @@ if test "${with_native_compilation}" != "no"; then
if test -n "$BREW"; then
BREW_LIBGCCJIT_PREFIX=`$BREW --prefix --installed libgccjit 2>/dev/null`
if test "$BREW_LIBGCCJIT_PREFIX"; then
brew_libdir=`find ${BREW_LIBGCCJIT_PREFIX}/ -name \*.so \
| sed -e '1!d;s|/[[^/]]*\.so$||'`
LDFLAGS="$LDFLAGS -L${brew_libdir} -I${BREW_LIBGCCJIT_PREFIX}/include"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment