mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 04:15:44 +03:00
Merge pull request #9874 from mikeller/add_test_version_dump
Added Makefile target to dump compiler versions used to build tests.
This commit is contained in:
commit
dd261f823e
2 changed files with 11 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue