File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 5555 uses : actions/cache@v2
5656 id : cache-llvm-build
5757 with :
58- key : llvm-build-14-windows-v1
58+ key : llvm-build-14-windows-v2
5959 path : llvm-build
6060 - name : Build LLVM
6161 if : steps.cache-llvm-build.outputs.cache-hit != 'true'
6565 rm -rf llvm-project
6666 make llvm-source
6767 # build!
68- make llvm-build
68+ make llvm-build CCACHE=OFF
6969 # Remove unnecessary object files (to reduce cache size).
7070 find llvm-build -name CMakeFiles -prune -exec rm -r '{}' \;
7171 - name : Cache wasi-libc sysroot
Original file line number Diff line number Diff line change @@ -38,10 +38,16 @@ MD5SUM = md5sum
3838# tinygo binary for tests
3939TINYGO ?= $(call detect,tinygo,tinygo $(CURDIR ) /build/tinygo)
4040
41- # Use CCACHE for LLVM if possible
42- ifneq (, $(shell command -v ccache 2> /dev/null) )
43- LLVM_OPTION += '-DLLVM_CCACHE_BUILD=ON'
41+ # Check for ccache if the user hasn't set it to on or off.
42+ ifeq (, $(CCACHE ) )
43+ # Use CCACHE for LLVM if possible
44+ ifneq (, $(shell command -v ccache 2> /dev/null))
45+ CCACHE := ON
46+ else
47+ CCACHE := OFF
48+ endif
4449endif
50+ LLVM_OPTION += '-DLLVM_CCACHE_BUILD=$(CCACHE ) '
4551
4652# Allow enabling LLVM assertions
4753ifeq (1, $(ASSERT ) )
You can’t perform that action at this time.
0 commit comments