Signed-off-by: Jordan Justen <jljusten@debian.org>
* 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
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