feat: add package maintainers

Signed-off-by: sisungo <[email protected]>
This commit is contained in:
2026-08-10 09:53:45 +08:00
parent 232aa0b690
commit 41d0b79083
70 changed files with 82 additions and 4 deletions
+6
View File
@@ -12,6 +12,7 @@ pkgver = "22.1.8"
version(pkgver)
description("a collection of modular and reusable compiler and toolchain technologies")
maintainer("sisungo <[email protected]>")
source_url(f"https://github.com/llvm/llvm-project/releases/download/llvmorg-{pkgver}/llvm-project-{pkgver}.src.tar.xz")
builddep("shortcut/c++")
@@ -252,6 +253,9 @@ def pack_clang(composer):
lrtlib = rtlib.replace(f"-{larch}", "")
composer.addfile(f"{linuxrtdir}/{rtlib}", f"{localrtdir}/{lrtlib}")
# Add symlink to system directories, which is required for finding libc++
os.symlink(f"/lib/{arch.get_target()}/include", f"{composer.workdir}/bundle/include")
# Add configuration
clang_cfg = f"-L/lib/{arch.get_target()}\n-B/lib/{arch.get_target()}\n-rtlib=compiler-rt\n"
clangxx_cfg = f"-stdlib=libc++\n{clang_cfg}"
@@ -263,6 +267,8 @@ def pack_clang(composer):
package("clang")
dep("libclang (same)")
on_pack(pack_clang)
link("bin/clang", "/bin/cc")
link("bin/clang++", "/bin/c++")
enter_install("lld")