mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-04 21:31:23 +00:00
Merge pull request #2227 from Ravenslofty/ccache
Add option to use ccache when building
This commit is contained in:
commit
0cb6725b6e
1 changed files with 5 additions and 0 deletions
5
Makefile
5
Makefile
|
@ -30,6 +30,7 @@ ENABLE_GCOV := 0
|
||||||
ENABLE_GPROF := 0
|
ENABLE_GPROF := 0
|
||||||
ENABLE_DEBUG := 0
|
ENABLE_DEBUG := 0
|
||||||
ENABLE_NDEBUG := 0
|
ENABLE_NDEBUG := 0
|
||||||
|
ENABLE_CCACHE := 0
|
||||||
LINK_CURSES := 0
|
LINK_CURSES := 0
|
||||||
LINK_TERMCAP := 0
|
LINK_TERMCAP := 0
|
||||||
LINK_ABC := 0
|
LINK_ABC := 0
|
||||||
|
@ -528,6 +529,10 @@ ifeq ($(ENABLE_COVER),1)
|
||||||
CXXFLAGS += -DYOSYS_ENABLE_COVER
|
CXXFLAGS += -DYOSYS_ENABLE_COVER
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(ENABLE_CCACHE),1)
|
||||||
|
CXX := ccache $(CXX)
|
||||||
|
endif
|
||||||
|
|
||||||
define add_share_file
|
define add_share_file
|
||||||
EXTRA_TARGETS += $(subst //,/,$(1)/$(notdir $(2)))
|
EXTRA_TARGETS += $(subst //,/,$(1)/$(notdir $(2)))
|
||||||
$(subst //,/,$(1)/$(notdir $(2))): $(2)
|
$(subst //,/,$(1)/$(notdir $(2))): $(2)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue