mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 18:43:34 +08:00
POSIX: Be less verbose on CXX builds, add option to provide log verbosity level on commandline
This commit is contained in:
@@ -44,6 +44,12 @@
|
|||||||
# Set to 1 for GCC-4.8.2 and to 0 for Clang-3.5 (Ubuntu 14.04)
|
# Set to 1 for GCC-4.8.2 and to 0 for Clang-3.5 (Ubuntu 14.04)
|
||||||
USE_GCC?=0
|
USE_GCC?=0
|
||||||
|
|
||||||
|
ifeq ($(PX4_DEBUG_LEVEL),)
|
||||||
|
VERBOSITY_LEVEL=
|
||||||
|
else
|
||||||
|
VERBOSITY_LEVEL=$(PX4_DEBUG_LEVEL)
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq ($(USE_GCC),1)
|
ifneq ($(USE_GCC),1)
|
||||||
|
|
||||||
HAVE_CLANG35:=$(shell clang-3.5 -dumpversion 2>/dev/null)
|
HAVE_CLANG35:=$(shell clang-3.5 -dumpversion 2>/dev/null)
|
||||||
@@ -121,6 +127,7 @@ $(error Board config does not define CONFIG_BOARD)
|
|||||||
endif
|
endif
|
||||||
ARCHDEFINES += -DCONFIG_ARCH_BOARD_$(CONFIG_BOARD) \
|
ARCHDEFINES += -DCONFIG_ARCH_BOARD_$(CONFIG_BOARD) \
|
||||||
-Dnoreturn_function=__attribute__\(\(noreturn\)\) \
|
-Dnoreturn_function=__attribute__\(\(noreturn\)\) \
|
||||||
|
-D$(VERBOSITY_LEVEL) \
|
||||||
-I$(PX4_BASE)/src/modules/systemlib \
|
-I$(PX4_BASE)/src/modules/systemlib \
|
||||||
-I$(PX4_BASE)/src/lib/eigen \
|
-I$(PX4_BASE)/src/lib/eigen \
|
||||||
-I$(PX4_BASE)/src/platforms/posix/include \
|
-I$(PX4_BASE)/src/platforms/posix/include \
|
||||||
@@ -296,7 +303,7 @@ endef
|
|||||||
define COMPILEXX
|
define COMPILEXX
|
||||||
@$(ECHO) "CXX: $1"
|
@$(ECHO) "CXX: $1"
|
||||||
@$(MKDIR) -p $(dir $2)
|
@$(MKDIR) -p $(dir $2)
|
||||||
@echo $(Q) $(CCACHE) $(CXX) -MD -c $(CXXFLAGS) $(abspath $1) -o $2
|
@$(Q) $(CCACHE) $(CXX) -MD -c $(CXXFLAGS) $(abspath $1) -o $2
|
||||||
$(Q) $(CCACHE) $(CXX) -MD -c $(CXXFLAGS) $(abspath $1) -o $2
|
$(Q) $(CCACHE) $(CXX) -MD -c $(CXXFLAGS) $(abspath $1) -o $2
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user