Этот коммит содержится в:
Ayke van Laethem 2022-06-29 23:27:21 +02:00 коммит произвёл Ron Evans
родитель d984b55311
коммит 0abc909739
2 изменённых файлов: 11 добавлений и 5 удалений

4
.github/workflows/windows.yml предоставленный
Просмотреть файл

@ -55,7 +55,7 @@ jobs:
uses: actions/cache@v2 uses: actions/cache@v2
id: cache-llvm-build id: cache-llvm-build
with: with:
key: llvm-build-14-windows-v1 key: llvm-build-14-windows-v2
path: llvm-build path: llvm-build
- name: Build LLVM - name: Build LLVM
if: steps.cache-llvm-build.outputs.cache-hit != 'true' if: steps.cache-llvm-build.outputs.cache-hit != 'true'
@ -65,7 +65,7 @@ jobs:
rm -rf llvm-project rm -rf llvm-project
make llvm-source make llvm-source
# build! # build!
make llvm-build make llvm-build CCACHE=OFF
# Remove unnecessary object files (to reduce cache size). # Remove unnecessary object files (to reduce cache size).
find llvm-build -name CMakeFiles -prune -exec rm -r '{}' \; find llvm-build -name CMakeFiles -prune -exec rm -r '{}' \;
- name: Cache wasi-libc sysroot - name: Cache wasi-libc sysroot

Просмотреть файл

@ -38,10 +38,16 @@ MD5SUM = md5sum
# tinygo binary for tests # tinygo binary for tests
TINYGO ?= $(call detect,tinygo,tinygo $(CURDIR)/build/tinygo) TINYGO ?= $(call detect,tinygo,tinygo $(CURDIR)/build/tinygo)
# Check for ccache if the user hasn't set it to on or off.
ifeq (, $(CCACHE))
# Use CCACHE for LLVM if possible # Use CCACHE for LLVM if possible
ifneq (, $(shell command -v ccache 2> /dev/null)) ifneq (, $(shell command -v ccache 2> /dev/null))
LLVM_OPTION += '-DLLVM_CCACHE_BUILD=ON' CCACHE := ON
else
CCACHE := OFF
endif endif
endif
LLVM_OPTION += '-DLLVM_CCACHE_BUILD=$(CCACHE)'
# Allow enabling LLVM assertions # Allow enabling LLVM assertions
ifeq (1, $(ASSERT)) ifeq (1, $(ASSERT))