mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
make: use ccache if environment variable is set
This commit is contained in:
parent
7ab88539eb
commit
3c56b49df6
@ -57,13 +57,13 @@ CXXFLAGS = $(filter-out $(CXXUWFLAGS), $(CFLAGS)) $(CXXEXFLAGS)
|
||||
# compile and generate dependency info
|
||||
|
||||
$(OBJC): $(BINDIR)$(MODULE)/%.o: %.c
|
||||
$(AD)$(CC) \
|
||||
$(AD)$(CCACHE) $(CC) \
|
||||
-DRIOT_FILE_RELATIVE=\"$(patsubst $(RIOTBASE)/%,%,$(abspath $<))\" \
|
||||
-DRIOT_FILE_NOPATH=\"$(notdir $<)\" \
|
||||
$(CFLAGS) $(INCLUDES) -MD -MP -c -o $@ $(abspath $<)
|
||||
|
||||
$(OBJCXX): $(BINDIR)$(MODULE)/%.o: %.cpp
|
||||
$(AD)$(CXX) \
|
||||
$(AD)$(CCACHE) $(CXX) \
|
||||
-DRIOT_FILE_RELATIVE=\"$(patsubst $(RIOTBASE)/%,%,$(abspath $<))\" \
|
||||
-DRIOT_FILE_NOPATH=\"$(notdir $<)\" \
|
||||
$(CXXFLAGS) $(INCLUDES) -MD -MP -c -o $@ $(abspath $<)
|
||||
|
Loading…
Reference in New Issue
Block a user