mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-14 20:00:43 +00:00

This adds the following to the libclc-12 package: /usr/lib/clc/spirv64-mesa3d-.spv /usr/lib/clc/spirv-mesa3d-.spv Since Debian buster & Ubuntu 18.04 don't have the llvm-spirv package, they cannot support this feature. Therefore, as suggested by tjaalton, we make the control Build-Depends for spirv dependencies include "| hello". This causes the simple "hello world" package to be installed on these older distros, which is small and unrelated to llvm. Then, in debian/rules, we check to see if llvm-spirv is installed. Note that sbuild must use `--resolve-alternatives` for these older distributions, or sbuild won't search for the "hello" alternatives in the Build-Depends. Signed-off-by: Jordan Justen <jljusten@debian.org>
14 lines
645 B
Diff
14 lines
645 B
Diff
diff --git a/libclc/CMakeLists.txt b/libclc/CMakeLists.txt
|
|
index b8b5ceff086c..5964468358f2 100644
|
|
--- a/libclc/CMakeLists.txt
|
|
+++ b/libclc/CMakeLists.txt
|
|
@@ -95,7 +95,7 @@ find_program( LLVM_CLANG clang PATHS ${LLVM_BINDIR} NO_DEFAULT_PATH )
|
|
find_program( LLVM_AS llvm-as PATHS ${LLVM_BINDIR} NO_DEFAULT_PATH )
|
|
find_program( LLVM_LINK llvm-link PATHS ${LLVM_BINDIR} NO_DEFAULT_PATH )
|
|
find_program( LLVM_OPT opt PATHS ${LLVM_BINDIR} NO_DEFAULT_PATH )
|
|
-find_program( LLVM_SPIRV llvm-spirv PATHS ${LLVM_BINDIR} NO_DEFAULT_PATH )
|
|
+find_program( LLVM_SPIRV llvm-spirv PATHS ${LLVM_BINDIR})
|
|
|
|
# Print toolchain
|
|
message( "clang: ${LLVM_CLANG}" )
|