mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-07-02 21:41:53 +00:00
* disable sccache on bionic
* d/rules: Call bash to use 'command -v' to location llvm-spirv executable * 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: Check for llvm-spirv with version suffix
This commit is contained in:
commit
a997e8f40b
7
debian/changelog
vendored
7
debian/changelog
vendored
@ -3,6 +3,13 @@ llvm-toolchain-14 (1:14.0.6-7) unstable; urgency=medium
|
||||
* Disable the cmake search for all binaries
|
||||
(cmake_import_check_files_for.*/bin/). Dunno why it regressed
|
||||
but we wasted too much time on this.
|
||||
* disable sccache on bionic
|
||||
|
||||
[ Jordan Justen ]
|
||||
* d/rules: Call bash to use 'command -v' to location llvm-spirv executable
|
||||
* 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: Check for llvm-spirv with version suffix
|
||||
|
||||
-- Sylvestre Ledru <sylvestre@debian.org> Thu, 27 Oct 2022 12:47:19 +0200
|
||||
|
||||
|
13
debian/patches/libclc-llvm-spirv.diff
vendored
13
debian/patches/libclc-llvm-spirv.diff
vendored
@ -1,13 +0,0 @@
|
||||
diff --git a/libclc/CMakeLists.txt b/libclc/CMakeLists.txt
|
||||
index b8b5ceff086c..5964468358f2 100644
|
||||
--- a/libclc/CMakeLists.txt
|
||||
+++ b/libclc/CMakeLists.txt
|
||||
@@ -97,7 +97,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}" )
|
1
debian/patches/series
vendored
1
debian/patches/series
vendored
@ -135,7 +135,6 @@ print-lldb-path.patch
|
||||
lower-python-dep.diff
|
||||
scan-build-py-fix-default-bin.diff
|
||||
|
||||
libclc-llvm-spirv.diff
|
||||
omp-riscv64.patch
|
||||
test-disable-lldb-i386.diff
|
||||
unbreak-atomic-mips.diff
|
||||
|
25
debian/rules
vendored
25
debian/rules
vendored
@ -223,20 +223,30 @@ else
|
||||
control_vars = '-Vdep:devlibs=libstdc++6-$(GCC_VERSION)-dev'
|
||||
endif
|
||||
|
||||
ifeq ($(shell command -v llvm-spirv),)
|
||||
LLVM_SPIRV_INSTALLED = no
|
||||
LLVM_SPIRV := $(shell bash -c "command -v llvm-spirv llvm-spirv-$(LLVM_VERSION)" 2>/dev/null)
|
||||
|
||||
ifndef LLVM_SPIRV
|
||||
LLVM_SPIRV_INSTALLED = no
|
||||
else
|
||||
ifeq ($(shell dpkg --compare-versions $(shell dpkg-query -W -f '$${Version}' llvm-spirv) gt 10.0.0 ; echo $$?),0)
|
||||
# Too old llvm-spirv version are failing. See #52200
|
||||
LLVM_SPIRV_INSTALLED = yes
|
||||
# if executable is llvm-spirv without a -$(LLVM_VERSION) suffix
|
||||
ifeq ($(LLVM_SPIRV:-$(LLVM_VERSION)=),$(LLVM_SPIRV))
|
||||
# Too old llvm-spirv version are failing. See #52200
|
||||
ifeq ($(shell dpkg --compare-versions $(shell dpkg-query -W -f '$${Version}' llvm-spirv) gt 10.0.0 ; echo $$?),0)
|
||||
LLVM_SPIRV_INSTALLED = yes
|
||||
else
|
||||
LLVM_SPIRV_INSTALLED = no
|
||||
endif
|
||||
else
|
||||
LLVM_SPIRV_INSTALLED = no
|
||||
# llvm-spirv renamed llvm-spirv-$(LLVM_VERSION) as of llvm-spirv-13
|
||||
LLVM_SPIRV_INSTALLED = yes
|
||||
endif
|
||||
endif
|
||||
|
||||
LIBCLC_TARGETS_TO_BUILD="amdgcn--;amdgcn--amdhsa;amdgcn-mesa-mesa3d;r600--;nvptx--;nvptx64--;nvptx--nvidiacl;nvptx64--nvidiacl"
|
||||
LIBCLC_TARGETS_LLVM_SPIRV := ""
|
||||
ifeq ($(LLVM_SPIRV_INSTALLED),yes)
|
||||
LIBCLC_TARGETS_TO_BUILD := $(LIBCLC_TARGETS_TO_BUILD)";spirv-mesa3d-;spirv64-mesa3d-"
|
||||
LIBCLC_TARGETS_LLVM_SPIRV := "-DLLVM_SPIRV=$(LLVM_SPIRV)"
|
||||
endif
|
||||
|
||||
BINUTILS_GOLD_ARCHS := amd64 arm64 armhf i386 ppc64 ppc64el x32 s390x hurd-i386 kfreebsd-amd64 kfreebsd-i386
|
||||
@ -705,7 +715,8 @@ debian-libclc-build:
|
||||
-DCMAKE_INSTALL_DATADIR=lib \
|
||||
-DCMAKE_INSTALL_INCLUDEDIR=include \
|
||||
-DLLVM_CONFIG=$(STAGE_2_BIN_DIR)/llvm-config \
|
||||
-DLIBCLC_TARGETS_TO_BUILD=$(LIBCLC_TARGETS_TO_BUILD); \
|
||||
-DLIBCLC_TARGETS_TO_BUILD=$(LIBCLC_TARGETS_TO_BUILD) \
|
||||
$(LIBCLC_TARGETS_LLVM_SPIRV); \
|
||||
ninja $(NJOBS) $(VERBOSE)
|
||||
touch $@
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user