diff options
author | whitequark <whitequark@whitequark.org> | 2020-07-05 15:53:41 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-05 15:53:41 +0000 |
commit | 0cb6725b6eedabe6e50a7101ce4e817d1943f725 (patch) | |
tree | 8e0ca272d26ddda740d708fa0b8748f20354876a | |
parent | 90b89e5ebc70afcc0b4b039d64a0b5bddc16e653 (diff) | |
parent | 7d5828a70635e3934300c15b5b6a89430a0f0355 (diff) | |
download | yosys-0cb6725b6eedabe6e50a7101ce4e817d1943f725.tar.gz yosys-0cb6725b6eedabe6e50a7101ce4e817d1943f725.tar.bz2 yosys-0cb6725b6eedabe6e50a7101ce4e817d1943f725.zip |
Merge pull request #2227 from Ravenslofty/ccache
Add option to use ccache when building
-rw-r--r-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -30,6 +30,7 @@ ENABLE_GCOV := 0 ENABLE_GPROF := 0 ENABLE_DEBUG := 0 ENABLE_NDEBUG := 0 +ENABLE_CCACHE := 0 LINK_CURSES := 0 LINK_TERMCAP := 0 LINK_ABC := 0 @@ -528,6 +529,10 @@ ifeq ($(ENABLE_COVER),1) CXXFLAGS += -DYOSYS_ENABLE_COVER endif +ifeq ($(ENABLE_CCACHE),1) +CXX := ccache $(CXX) +endif + define add_share_file EXTRA_TARGETS += $(subst //,/,$(1)/$(notdir $(2))) $(subst //,/,$(1)/$(notdir $(2))): $(2) |