mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-07 01:41:36 +08:00
makefiles: make it easier to use ccache for build on windows
This commit is contained in:
committed by
Lorenz Meier
parent
6bc6739676
commit
c9e795156f
@@ -228,7 +228,7 @@ DEP_INCLUDES = $(subst .o,.d,$(OBJS))
|
|||||||
define COMPILE
|
define COMPILE
|
||||||
@$(ECHO) "CC: $1"
|
@$(ECHO) "CC: $1"
|
||||||
@$(MKDIR) -p $(dir $2)
|
@$(MKDIR) -p $(dir $2)
|
||||||
$(Q) $(CC) -MD -c $(CFLAGS) $(abspath $1) -o $2
|
$(Q) $(CCACHE) $(CC) -MD -c $(CFLAGS) $(abspath $1) -o $2
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# Compile C++ source $1 to $2
|
# Compile C++ source $1 to $2
|
||||||
@@ -237,7 +237,7 @@ endef
|
|||||||
define COMPILEXX
|
define COMPILEXX
|
||||||
@$(ECHO) "CXX: $1"
|
@$(ECHO) "CXX: $1"
|
||||||
@$(MKDIR) -p $(dir $2)
|
@$(MKDIR) -p $(dir $2)
|
||||||
$(Q) $(CXX) -MD -c $(CXXFLAGS) $(abspath $1) -o $2
|
$(Q) $(CCACHE) $(CXX) -MD -c $(CXXFLAGS) $(abspath $1) -o $2
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# Assemble $1 into $2
|
# Assemble $1 into $2
|
||||||
|
|||||||
Reference in New Issue
Block a user