1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 01:05:27 +03:00

Added Makefile target to dump compiler versions used to build tests.

This commit is contained in:
mikeller 2020-06-01 15:30:18 +12:00
parent 6bada9c5e9
commit b05599fdb8
2 changed files with 11 additions and 0 deletions

View file

@ -437,6 +437,9 @@ COMMON_FLAGS = \
-isystem $(GTEST_DIR)/inc \
-MMD -MP
CC_VERSION = $(shell $(CC) -dumpversion)
CXX_VERSION = $(shell $(CXX) -dumpversion)
ifeq ($(shell $(CC) -v 2>&1 | grep -q "clang version" && echo "clang"),clang)
COMMON_FLAGS += -fblocks
ifndef CYGWIN
@ -543,6 +546,10 @@ help what usage: Makefile
@echo "Any of the Unit Test programs (except for target specific unit tests) can be used as goals to build and run:"
@$(foreach test, $(TESTS), echo " test_$(test)";)
versions:
@echo "C compiler: $(CC): $(CC_VERSION)"
@echo "C++ compiler: $(CXX): $(CXX_VERSION)"
## clean : Cleanup the UnitTest binaries.
clean :
rm -rf $(OBJECT_DIR)