Skip to content

Commit 0abc909

Browse files
aykevldeadprogram
authored andcommitted
ci: disable ccache on Windows
1 parent d984b55 commit 0abc909

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.github/workflows/windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
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'
@@ -65,7 +65,7 @@ jobs:
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

Makefile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,16 @@ MD5SUM = md5sum
3838
# tinygo binary for tests
3939
TINYGO ?= $(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
4449
endif
50+
LLVM_OPTION += '-DLLVM_CCACHE_BUILD=$(CCACHE)'
4551

4652
# Allow enabling LLVM assertions
4753
ifeq (1, $(ASSERT))

0 commit comments

Comments
 (0)