mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-10-17 17:32:55 +00:00
d/rules: Set LLVM_SPIRV with cmake for libclc
Signed-off-by: Jordan Justen <jljusten@debian.org>
This commit is contained in:
parent
3606129645
commit
a57d00a036
1
debian/changelog
vendored
1
debian/changelog
vendored
@ -5,6 +5,7 @@ llvm-toolchain-14 (1:14.0.6-7) UNRELEASED; urgency=medium
|
||||
|
||||
[ Jordan Justen ]
|
||||
* d/rules: Call bash to use 'command -v' to location llvm-spirv executable
|
||||
* d/rules: Set LLVM_SPIRV with cmake for libclc
|
||||
|
||||
-- Jordan Justen <jljusten@debian.org> Wed, 26 Oct 2022 10:13:59 -0700
|
||||
|
||||
|
5
debian/rules
vendored
5
debian/rules
vendored
@ -237,8 +237,10 @@ else
|
||||
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
|
||||
@ -707,7 +709,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