summaryrefslogtreecommitdiffstats
path: root/recipes-devtools
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-03-08 07:33:12 -0800
committerKhem Raj <raj.khem@gmail.com>2023-03-20 07:48:27 -0700
commit074385b5da01b1e6e6072eae7146ffa2750756cc (patch)
tree413f189d29343fdd30f558ef1e4b5c8616a01a08 /recipes-devtools
parent2d9f57f54816dee7ee143ffbd1a780ed03526268 (diff)
downloadmeta-clang-074385b5da01b1e6e6072eae7146ffa2750756cc.tar.gz
spirv-llvm-translator: Turn shared libs off
It does not build them with 16.0.0+ Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-devtools')
-rw-r--r--recipes-devtools/spirv-llvm-translator/spirv-llvm-translator_git.bb11
1 files changed, 2 insertions, 9 deletions
diff --git a/recipes-devtools/spirv-llvm-translator/spirv-llvm-translator_git.bb b/recipes-devtools/spirv-llvm-translator/spirv-llvm-translator_git.bb
index 4354c55..844f1b3 100644
--- a/recipes-devtools/spirv-llvm-translator/spirv-llvm-translator_git.bb
+++ b/recipes-devtools/spirv-llvm-translator/spirv-llvm-translator_git.bb
@@ -19,9 +19,10 @@ DEPENDS = "spirv-tools clang"
19inherit cmake pkgconfig python3native 19inherit cmake pkgconfig python3native
20 20
21# Specify any options you want to pass to cmake using EXTRA_OECMAKE: 21# Specify any options you want to pass to cmake using EXTRA_OECMAKE:
22# for CMAKE_SHARED_LIBS=OFF see https://github.com/KhronosGroup/SPIRV-LLVM-Translator/issues/1868
22EXTRA_OECMAKE = "\ 23EXTRA_OECMAKE = "\
23 -DBASE_LLVM_VERSION=${LLVMVERSION} \ 24 -DBASE_LLVM_VERSION=${LLVMVERSION} \
24 -DBUILD_SHARED_LIBS=ON \ 25 -DBUILD_SHARED_LIBS=OFF \
25 -DCMAKE_BUILD_TYPE=Release \ 26 -DCMAKE_BUILD_TYPE=Release \
26 -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ 27 -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
27 -DCMAKE_SKIP_RPATH=ON \ 28 -DCMAKE_SKIP_RPATH=ON \
@@ -32,12 +33,4 @@ EXTRA_OECMAKE = "\
32 -DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=${S}/SPIRV-Headers \ 33 -DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=${S}/SPIRV-Headers \
33" 34"
34 35
35do_compile:append() {
36 oe_runmake llvm-spirv
37}
38
39do_install:append() {
40 install -Dm755 ${B}/tools/llvm-spirv/llvm-spirv ${D}${bindir}/llvm-spirv
41}
42
43BBCLASSEXTEND = "native nativesdk" 36BBCLASSEXTEND = "native nativesdk"