1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 01:07:44 +00:00

Meta+Toolchain: Redirect GDB error output to stdout before grepping

This commit is contained in:
Tim Schumacher 2023-04-09 13:23:24 +02:00 committed by Linus Groh
parent 022a55e825
commit 83701ec54b
2 changed files with 2 additions and 2 deletions

View file

@ -103,7 +103,7 @@ buildstep() {
has_gdb() {
ARCH=$1
ARCH_DASH="${ARCH//_/-}"
if command -v gdb >/dev/null && gdb -ex 'set architecture' -ex 'quit' | grep "$ARCH_DASH"; then
if command -v gdb >/dev/null && gdb -ex 'set architecture' -ex 'quit' 2>&1 | grep "$ARCH_DASH"; then
return 0
else
command -v "$ARCH"-elf-gdb >/dev/null