feat: add package curl

Signed-off-by: sisungo <[email protected]>
This commit is contained in:
2026-07-11 09:14:55 +08:00
parent 557aae6cb5
commit 0743d92327
3 changed files with 105 additions and 1 deletions
+1 -1
View File
@@ -212,7 +212,7 @@ def install_wrapper(composer, name: str, dst: str):
s = f.read()
s = s.replace("LLVM_VERSION=", f"LLVM_VERSION={upstream_version}").replace(
"ARCHITECTURE=", "ARCHITECTURE=" + arch.get_target()
)
).replace("LLVM_ARCH=", "LLVM_ARCH=" + llvm_host_triple())
with open(f"{composer.workdir}/bundle/{dst}", "w") as f:
f.write(s)
os.chmod(f"{composer.workdir}/bundle/{dst}", 0o755)
@@ -2,12 +2,14 @@
LLVM_VERSION=
ARCHITECTURE=
LLVM_ARCH=
CLANG=$(packie print package.prefix."clang (=${LLVM_VERSION}) @${ARCHITECTURE}")/bin/llvm-clang
exec ${CLANG} \
-Wno-unused-command-line-argument \
-isystem /lib/${ARCHITECTURE}/include/c++/v1 \
-isystem /lib/${ARCHITECTURE}/include/${LLVM_ARCH}/c++/v1 \
-isystem /lib/${ARCHITECTURE}/include \
-stdlib=libc++ \
-rtlib=compiler-rt \