diff --git a/Makefile b/Makefile index dab827d77..9323aa63d 100644 --- a/Makefile +++ b/Makefile @@ -309,7 +309,7 @@ test: $(LINUX_BUILD) benchmark: $(LINUX_BUILD) $(NINJA) $(NINJA_ARGS) -j$(JOBS) -C $(LINUX_OUTPUT_PATH) mbgl-benchmark -ifneq (,$(shell command -v gdb)) +ifneq (,$(shell command -v gdb 2> /dev/null)) GDB = gdb -batch -return-child-result -ex 'set print thread-events off' -ex 'run' -ex 'thread apply all bt' --args endif