From 16e94131fa08a60891d832ec62f2ce77083d9d01 Mon Sep 17 00:00:00 2001 From: Rene Cannao Date: Sun, 22 Mar 2026 22:52:38 +0000 Subject: [PATCH] Pass MAKECMDGOALS to unit test submake Without this, `make build_tap_test_debug` calls `make` (default target) in test/tap/tests/unit/ instead of `make debug`. The debug target adds -DDEBUG which is needed to define __thread stubs like mysql_thread___session_debug that are guarded by #ifdef DEBUG. Co-Authored-By: Claude Opus 4.6 (1M context) --- test/tap/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/tap/Makefile b/test/tap/Makefile index 2c50397a3..6591ebdf0 100644 --- a/test/tap/Makefile +++ b/test/tap/Makefile @@ -31,7 +31,7 @@ tests_with_deps: tap test_deps .PHONY: unit_tests unit_tests: - cd tests/unit && CC=${CC} CXX=${CXX} ${MAKE} + cd tests/unit && CC=${CC} CXX=${CXX} ${MAKE} $(MAKECMDGOALS) .PHONY: clean_utils