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) <noreply@anthropic.com>
v3.0-ci260322
Rene Cannao 2 months ago
parent 98fb842c50
commit 16e94131fa

@ -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

Loading…
Cancel
Save