Skip to content

Commit

Permalink
Toolchain: Fix the gdb build for aarch64 target on macOS host
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmintram authored and linusg committed Apr 1, 2022
1 parent db89421 commit 81b6386
Showing 1 changed file with 25 additions and 6 deletions.
31 changes: 25 additions & 6 deletions Toolchain/BuildIt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -308,12 +308,31 @@ pushd "$DIR/Build/$ARCH"

pushd gdb
echo "XXX configure gdb"
buildstep "gdb/configure" "$DIR"/Tarballs/$GDB_NAME/configure --prefix="$PREFIX" \
--target="$TARGET" \
--with-sysroot="$SYSROOT" \
--enable-shared \
--disable-nls \
${TRY_USE_LOCAL_TOOLCHAIN:+"--quiet"} || exit 1


if [ "$SYSTEM_NAME" = "Darwin" ]; then
buildstep "gdb/configure" "$DIR"/Tarballs/$GDB_NAME/configure --prefix="$PREFIX" \
--target="$TARGET" \
--with-sysroot="$SYSROOT" \
--enable-shared \
--disable-werror \
--with-libgmp-prefix="$(brew --prefix gmp)" \
--with-gmp="$(brew --prefix gmp)" \
--with-isl="$(brew --prefix isl)" \
--with-mpc="$(brew --prefix libmpc)" \
--with-mpfr="$(brew --prefix mpfr)" \
--disable-nls \
${TRY_USE_LOCAL_TOOLCHAIN:+"--quiet"} || exit 1
else
buildstep "gdb/configure" "$DIR"/Tarballs/$GDB_NAME/configure --prefix="$PREFIX" \
--target="$TARGET" \
--with-sysroot="$SYSROOT" \
--enable-shared \
--disable-nls \
${TRY_USE_LOCAL_TOOLCHAIN:+"--quiet"} || exit 1
fi


echo "XXX build gdb"
buildstep "gdb/build" "$MAKE" -j "$MAKEJOBS" || exit 1
buildstep "gdb/install" "$MAKE" install || exit 1
Expand Down

0 comments on commit 81b6386

Please sign in to comment.