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 55
55
uses : actions/cache@v2
56
56
id : cache-llvm-build
57
57
with :
58
- key : llvm-build-14-windows-v1
58
+ key : llvm-build-14-windows-v2
59
59
path : llvm-build
60
60
- name : Build LLVM
61
61
if : steps.cache-llvm-build.outputs.cache-hit != 'true'
65
65
rm -rf llvm-project
66
66
make llvm-source
67
67
# build!
68
- make llvm-build
68
+ make llvm-build CCACHE=OFF
69
69
# Remove unnecessary object files (to reduce cache size).
70
70
find llvm-build -name CMakeFiles -prune -exec rm -r '{}' \;
71
71
- name : Cache wasi-libc sysroot
Original file line number Diff line number Diff line change @@ -38,10 +38,16 @@ MD5SUM = md5sum
38
38
# tinygo binary for tests
39
39
TINYGO ?= $(call detect,tinygo,tinygo $(CURDIR ) /build/tinygo)
40
40
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
44
49
endif
50
+ LLVM_OPTION += '-DLLVM_CCACHE_BUILD=$(CCACHE ) '
45
51
46
52
# Allow enabling LLVM assertions
47
53
ifeq (1, $(ASSERT ) )
You can’t perform that action at this time.
0 commit comments