d/rules: Check for previous version of llvm-spirv as well

Signed-off-by: Jordan Justen <jljusten@debian.org>
This commit is contained in:
Jordan Justen 2022-10-30 15:16:19 -07:00
parent c01c35efe8
commit 5befbff174
No known key found for this signature in database
GPG Key ID: 9A85A5A3468AE8E3
2 changed files with 5 additions and 0 deletions

1
debian/changelog vendored
View File

@ -7,6 +7,7 @@ llvm-toolchain-15 (1:15.0.3-3) UNRELEASED; urgency=medium
* d/rules: Set LLVM_SPIRV with cmake for libclc
* d/patches: Drop libclc-llvm-spirv.diff now that we are setting LLVM_SPIRV
* d/rules: Restore building libclc .bc output without spir-v support
* d/rules: Check for previous version of llvm-spirv as well
-- Jordan Justen <jljusten@debian.org> Sun, 30 Oct 2022 00:26:40 -0700

4
debian/rules vendored
View File

@ -245,6 +245,10 @@ endif
LLVM_SPIRV_VERSION := $(LLVM_VERSION)
LLVM_SPIRV := $(shell bash -c "command -v llvm-spirv-$(LLVM_SPIRV_VERSION)" 2>/dev/null)
ifndef LLVM_SPIRV
LLVM_SPIRV_VERSION := $(shell expr $(LLVM_VERSION) - 1)
LLVM_SPIRV := $(shell bash -c "command -v llvm-spirv-$(LLVM_SPIRV_VERSION)" 2>/dev/null)
endif
ifndef LLVM_SPIRV
LLVM_SPIRV_INSTALLED = no