From: Johnnynator <Johnnynator@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [WIP] LLVM 15
Date: Sat, 14 Jan 2023 23:16:31 +0100 [thread overview]
Message-ID: <20230114221631.hKPl9dMz2zRn86kYETcNB_uk0X-k7qWMYi1KKmj6U98@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-40821@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 6008 bytes --]
New comment by Johnnynator on void-packages repository
https://github.com/void-linux/void-packages/pull/40821#issuecomment-1382939956
Comment:
I did some fixes for cross, also I don't think we need the per target runtime dirs, and if we did use them you should probably use a wildcard in vinstall
```diff
diff --git a/srcpkgs/llvm15/template b/srcpkgs/llvm15/template
index db510bbd24..6249ec307c 100644
--- a/srcpkgs/llvm15/template
+++ b/srcpkgs/llvm15/template
@@ -4,6 +4,7 @@ version=15.0.6
revision=1
build_wrksrc=llvm
build_style=cmake
+_ext_suffix=".cpython-${py3_ver/./}-linux-${XBPS_TARGET_LIBC/glibc/gnu}.so"
configure_args="
-DCMAKE_BUILD_TYPE=Release -Wno-dev
-DENABLE_LINKER_BUILD_ID=YES
@@ -23,11 +24,15 @@ configure_args="
-DLLVM_LINK_LLVM_DYLIB=YES
-DLLVM_ENABLE_RTTI=YES
-DLLVM_ENABLE_FFI=YES
- -DLLVM_BINUTILS_INCDIR=/usr/include"
+ -DLLVM_BINUTILS_INCDIR=/usr/include
+ -DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=NO
+ -DLLDB_PYTHON_RELATIVE_PATH=lib/python${py3_ver}/site-packages
+ -DLLDB_PYTHON_EXE_RELATIVE_PATH=bin/python${py3_ver}
+ -DLLDB_PYTHON_EXT_SUFFIX=$_ext_suffix"
hostmakedepends="perl python3 zlib-devel libffi-devel swig python3-Sphinx
python3-recommonmark python3-sphinx-automodapi"
makedepends="python3-devel zlib-devel elfutils-devel libffi-devel libedit-devel
libxml2-devel binutils-devel libatomic-devel"
depends="libllvm15>=${version}_${revision}"
short_desc="Low Level Virtual Machine"
maintainer="Orphaned <orphan@voidlinux.org>"
@@ -56,7 +61,7 @@ _libomp_enable=no
case "$XBPS_TARGET_MACHINE" in
ppc64le*) ;;
- ppc*|i686*) _lldb_enable=no ;;
+ ppc*|i686*|riscv64*) _lldb_enable=no ;;
esac
case "$XBPS_TARGET_MACHINE" in
@@ -153,9 +158,14 @@ pre_configure() {
-DLLVM_ENABLE_PROJECTS=${_enabled_projects}
make ${makejobs} -C utils/TableGen
make ${makejobs} -C tools/clang/utils/TableGen
+ make ${makejobs} -C tools/clang/tools/extra/clang-tidy/misc/ConfusableTable
+ make ${makejobs} -C tools/clang/tools/extra/pseudo/gen
[ "$_lldb_enable" = "yes" ] && make ${makejobs} -C tools/lldb/utils/TableGen
configure_args+=" -DLLVM_TABLEGEN=${wrksrc}/llvm/build/HOST/bin/llvm-tblgen"
configure_args+=" -DCLANG_TABLEGEN=${wrksrc}/llvm/build/HOST/bin/clang-tblgen"
+ configure_args+=" -DCLANG_TIDY_CONFUSABLE_CHARS_GEN=${wrksrc}/llvm/build/HOST/bin/clang-tidy-confusable-chars-gen"
+ configure_args+=" -DCLANG_PSEUDO_GEN=${wrksrc}/llvm/build/HOST/bin/clang-pseudo-gen"
+ [ "$_lldb_enable" = "yes" ] && configure_args+=" -DLLDB_TABLEGEN=${wrksrc}/llvm/build/HOST/bin/lldb-tblgen"
[ "$_lldb_enable" = "yes" ] && configure_args+=" -DLLDB_TABLEGEN=${wrksrc}/llvm/build/HOST/bin/lldb-tblgen"
cd ../..
fi
@@ -298,9 +308,9 @@ lld_package() {
short_desc+=" - linker"
homepage="https://lld.llvm.org"
pkg_install() {
- vmove usr/bin/ld.lld*
- vmove usr/bin/ld64.lld*
- vmove usr/bin/lld*
+ vmove "usr/bin/ld.lld*"
+ vmove "usr/bin/ld64.lld*"
+ vmove "usr/bin/lld*"
vmove usr/bin/wasm-ld
vmove usr/share/doc/LLVM/lld
}
@@ -324,9 +334,9 @@ lldb_package() {
short_desc+=" - LLDB debugger"
homepage="https://lldb.llvm.org/"
pkg_install() {
- vmove usr/bin/*lldb*
- vmove usr/lib/liblldb*so.*
- vmove /usr/lib/python*
+ vmove "usr/bin/*lldb*"
+ vmove "usr/lib/liblldb*so.*"
+ vmove usr/lib/python*
}
}
@@ -343,7 +353,7 @@ lldb-devel_package() {
llvm-libunwind_package() {
short_desc+=" - libunwind"
pkg_install() {
- vmove "usr/lib/${XBPS_TRIPLET}/libunwind.so.*"
+ vmove "usr/lib/libunwind.so.*"
}
}
@@ -354,8 +364,8 @@ llvm-libunwind-devel_package() {
pkg_install() {
vmove usr/include/mach-o
vmove "usr/include/*unwind*"
- vmove "usr/lib/${XBPS_TRIPLET}/libunwind.a"
- vmove "usr/lib/${XBPS_TRIPLET}/libunwind.so"
+ vmove "usr/lib/libunwind.a"
+ vmove "usr/lib/libunwind.so"
vmove usr/share/doc/LLVM/libunwind
}
}
@@ -363,7 +373,7 @@ llvm-libunwind-devel_package() {
libcxxabi_package() {
short_desc+=" - low level support for libc++"
pkg_install() {
- vmove "usr/lib/${XBPS_TRIPLET}/libc++abi.so.*"
+ vmove "usr/lib/libc++abi.so.*"
}
}
@@ -372,15 +382,15 @@ libcxxabi-devel_package() {
depends="libcxxabi>=${version}_${revision}"
pkg_install() {
vmove "usr/include/*cxxabi*"
- vmove "usr/lib/${XBPS_TRIPLET}/libc++abi.so"
- vmove "usr/lib/${XBPS_TRIPLET}/libc++abi.a"
+ vmove "usr/lib/libc++abi.so"
+ vmove "usr/lib/libc++abi.a"
}
}
libcxx_package() {
short_desc+=" - C++ standard library"
pkg_install() {
- vmove "usr/lib/${XBPS_TRIPLET}/libc++.so.*"
+ vmove "usr/lib/libc++.so.*"
}
}
@@ -389,9 +399,9 @@ libcxx-devel_package() {
depends="libcxx>=${version}_${revision}"
pkg_install() {
vmove usr/include/c++
- vmove "usr/lib/${XBPS_TRIPLET}/libc++.so"
- vmove "usr/lib/${XBPS_TRIPLET}/libc++.a"
- vmove "usr/lib/${XBPS_TRIPLET}/libc++experimental.a"
+ vmove "usr/lib/libc++.so"
+ vmove "usr/lib/libc++.a"
+ vmove "usr/lib/libc++experimental.a"
vmove usr/share/doc/LLVM/libcxx
}
}
```
next prev parent reply other threads:[~2023-01-14 22:16 UTC|newest]
Thread overview: 96+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-28 15:30 [PR PATCH] " tranzystorek-io
2022-11-28 15:32 ` tranzystorek-io
2022-11-28 16:36 ` dkwo
2022-11-28 19:13 ` [PR PATCH] [Updated] " tranzystorek-io
2022-11-28 23:49 ` tranzystorek-io
2022-11-29 0:31 ` tranzystorek-io
2022-12-05 8:05 ` tranzystorek-io
2022-12-05 8:17 ` tranzystorek-io
2022-12-05 8:22 ` [PR REVIEW] " oreo639
2022-12-05 8:22 ` oreo639
2022-12-05 8:29 ` oreo639
2022-12-05 8:29 ` oreo639
2022-12-05 8:30 ` oreo639
2022-12-05 8:39 ` oreo639
2022-12-05 9:28 ` oreo639
2022-12-05 9:55 ` oreo639
2022-12-05 9:55 ` oreo639
2022-12-06 10:11 ` [PR PATCH] [Updated] " tranzystorek-io
2022-12-07 5:04 ` Vaelatern
2022-12-07 5:04 ` Vaelatern
2022-12-12 18:26 ` [PR PATCH] [Updated] " tranzystorek-io
2022-12-17 8:56 ` tranzystorek-io
2022-12-17 9:00 ` tranzystorek-io
2022-12-17 9:09 ` tranzystorek-io
2022-12-17 10:44 ` [PR REVIEW] " paper42
2022-12-17 23:41 ` [PR PATCH] [Updated] " tranzystorek-io
2022-12-18 0:02 ` [PR REVIEW] " oreo639
2022-12-18 0:03 ` oreo639
2022-12-18 0:05 ` oreo639
2022-12-18 11:24 ` [PR PATCH] [Updated] " tranzystorek-io
2022-12-18 23:30 ` tranzystorek-io
2022-12-19 23:58 ` oreo639
2022-12-19 23:59 ` oreo639
2022-12-20 0:04 ` oreo639
2022-12-20 0:09 ` oreo639
2022-12-22 4:26 ` simvux
2022-12-22 4:48 ` oreo639
2022-12-22 10:15 ` ardadem
2023-01-05 14:13 ` [PR PATCH] [Updated] " tranzystorek-io
2023-01-06 12:39 ` [PR REVIEW] " tranzystorek-io
2023-01-06 12:56 ` [PR PATCH] [Updated] " tranzystorek-io
2023-01-06 16:15 ` tranzystorek-io
2023-01-07 10:31 ` tranzystorek-io
2023-01-07 17:02 ` tranzystorek-io
2023-01-09 0:22 ` tranzystorek-io
2023-01-09 0:58 ` tranzystorek-io
2023-01-10 8:20 ` dkwo
2023-01-12 18:46 ` [PR PATCH] [Updated] " tranzystorek-io
2023-01-14 22:16 ` Johnnynator [this message]
2023-01-15 1:46 ` tranzystorek-io
2023-01-16 13:45 ` tranzystorek-io
2023-01-17 19:01 ` [PR REVIEW] " Johnnynator
2023-01-24 13:05 ` [PR PATCH] [Updated] " tranzystorek-io
2023-01-24 13:15 ` tranzystorek-io
2023-01-26 22:36 ` tranzystorek-io
2023-02-01 12:34 ` tranzystorek-io
2023-02-05 12:42 ` tranzystorek-io
2023-02-05 13:58 ` tranzystorek-io
2023-02-07 9:14 ` tranzystorek-io
2023-02-10 14:20 ` tranzystorek-io
2023-02-10 14:49 ` oreo639
2023-02-10 14:50 ` oreo639
2023-02-10 14:51 ` oreo639
2023-02-10 14:51 ` oreo639
2023-02-10 14:55 ` oreo639
2023-02-10 16:26 ` [PR PATCH] [Updated] " tranzystorek-io
2023-02-10 16:42 ` tranzystorek-io
2023-02-10 19:21 ` tranzystorek-io
2023-02-15 17:27 ` tranzystorek-io
2023-02-16 19:17 ` tranzystorek-io
2023-02-16 22:44 ` tranzystorek-io
2023-02-18 19:34 ` tranzystorek-io
2023-02-19 22:34 ` simvux
2023-02-20 9:59 ` cmueller-tp
2023-02-22 12:35 ` [PR PATCH] [Updated] " tranzystorek-io
2023-02-22 14:35 ` tranzystorek-io
2023-02-22 19:26 ` tranzystorek-io
2023-02-22 19:41 ` [PR PATCH] [Updated] " tranzystorek-io
2023-02-24 22:55 ` Johnnynator
2023-03-01 14:02 ` [PR PATCH] [Updated] " tranzystorek-io
2023-03-10 14:35 ` tranzystorek-io
2023-03-13 14:25 ` motorto
2023-03-13 14:27 ` tranzystorek-io
2023-03-18 3:31 ` ihameed
2023-03-18 3:39 ` ihameed
2023-03-18 4:46 ` ihameed
2023-03-18 9:35 ` [PR PATCH] [Updated] " tranzystorek-io
2023-03-18 16:35 ` tranzystorek-io
2023-03-25 6:04 ` oreo639
2023-03-25 13:04 ` [PR PATCH] [Updated] " tranzystorek-io
2023-03-25 13:10 ` tranzystorek-io
2023-03-30 22:02 ` tranzystorek-io
2023-03-31 13:28 ` [PR PATCH] [Closed]: " leahneukirchen
2023-04-02 12:17 ` simvux
2023-04-02 12:18 ` tranzystorek-io
2023-04-02 12:19 ` simvux
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230114221631.hKPl9dMz2zRn86kYETcNB_uk0X-k7qWMYi1KKmj6U98@z \
--to=johnnynator@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).