projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9b6108
)
Add option to use ccache when building
author
Dan Ravensloft
<dan.ravensloft@gmail.com>
Sat, 4 Jul 2020 18:59:39 +0000
(19:59 +0100)
committer
Dan Ravensloft
<dan.ravensloft@gmail.com>
Sat, 4 Jul 2020 18:59:39 +0000
(19:59 +0100)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index 3d3e60359b12b298f76c85e03478c02b4e177000..b9c3d14eb1ec3508301d794766726c0269b763ad 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-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)