spirv-llvm rebuild

This commit is contained in:
Rmys
2023-01-22 14:43:20 +03:00
committed by GitHub
parent 7d3f185f73
commit cb28e208bc
2 changed files with 21 additions and 5 deletions
+19 -2
View File
@@ -10,9 +10,11 @@ from pisi.actionsapi import shelltools
from pisi.actionsapi import get
tools = "-DLLVM_BUILD_TOOLS=OFF" if get.buildTYPE() == "emul32" else "-DLLVM_BUILD_TOOLS=ON"
libdir = "lib32" if get.buildTYPE() == "emul32" else "lib"
def setup():
cmaketools.configure("-DBUILD_SHARED_LIBS=ON \
options = "-DBUILD_SHARED_LIBS=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
-DCMAKE_SKIP_RPATH=ON \
@@ -20,8 +22,19 @@ def setup():
-DLLVM_INCLUDE_TESTS=ON \
-DLLVM_EXTERNAL_LIT=/usr/bin/lit \
-DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=/usr/include/spirv/ \
-DCMAKE_INSTALL_LIBDIR=%s \
%s \
-Wno-dev" %tools)
-Wno-dev" % (libdir, tools)
if get.buildTYPE() == "emul32":
shelltools.export("CC", "gcc -m32")
shelltools.export("CXX", "g++ -m32")
shelltools.export("PKG_CONFIG_PATH","/usr/lib32/pkgconfig")
options += " -DLLVM_LIBDIR_SUFFIX=32 \
-DCMAKE_INSTALL_BINDIR:PATH=bin32 \
cmaketools.configure(options)
def build():
cmaketools.make()
@@ -29,4 +42,8 @@ def build():
def install():
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
if get.buildTYPE() == "emul32":
pisitools.removeDir("/usr/bin32")
return
pisitools.dodoc("LICENSE*", "README*")
+2 -3
View File
@@ -14,12 +14,11 @@
<Description>Tool and a library for bi-directional translation between SPIR-V and LLVM IR</Description>
<Archive sha1sum="f288e95377bc94e5fdbe5ed4f2dfdd16ef02289a" type="targz">https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/refs/tags/v15.0.0.tar.gz</Archive>
<BuildDependencies>
<Dependency>git</Dependency>
<!-- <Dependency>git</Dependency> -->
<Dependency>cmake</Dependency>
<Dependency>python3-devel</Dependency>
<Dependency>llvm-mlir</Dependency>
<Dependency>llvm-libs</Dependency>
<Dependency>spirv-tools-devel</Dependency>
<Dependency>libxml2-devel</Dependency>
<Dependency>llvm-clang-devel</Dependency>
<Dependency>python3-setuptools</Dependency>
@@ -45,6 +44,7 @@
<Dependency>spirv-tools</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
@@ -76,7 +76,6 @@
<Dependency release="current">spirv-llvm</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="header">/usr/include</Path>
<Path fileType="library">/usr/lib/pkgconfig</Path>
<Path fileType="library">/usr/lib32/pkgconfig</Path>