pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CodeWhale - allow for an easier build under low-resourced hosts - build was failing under a 12GB Linux host when using GNU ld, now switched to lld.
Module Name: pkgsrc-wip
Committed By: ci4ic4 <ci4ic4%gmail.com@localhost>
Pushed By: ci4ic4
Date: Sat Aug 1 12:22:38 2026 +0100
Changeset: dc0020cb0c99b4928c748f2d786454db1b71f8b7
Modified Files:
CodeWhale/Makefile
Log Message:
CodeWhale - allow for an easier build under low-resourced hosts -
build was failing under a 12GB Linux host when using GNU ld,
now switched to lld.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=dc0020cb0c99b4928c748f2d786454db1b71f8b7
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
CodeWhale/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diffs:
diff --git a/CodeWhale/Makefile b/CodeWhale/Makefile
index f1448dd020..aa446ac964 100644
--- a/CodeWhale/Makefile
+++ b/CodeWhale/Makefile
@@ -22,6 +22,12 @@ CARGO_INSTALL_ARGS= install \
--path crates/tui \
--root ${DESTDIR}${PREFIX} ${DEFAULT_CARGO_ARGS}
+# Use lld linker instead of GNU ld — much less memory during final link.
+# Max codegen units + thin LTO spread LLVM work across smaller parallel invocations.
+RUSTFLAGS+= -C link-arg=-fuse-ld=lld
+MAKE_ENV+= CARGO_PROFILE_RELEASE_CODEGEN_UNITS=16
+MAKE_ENV+= CARGO_PROFILE_RELEASE_LTO=thin
+
# rquickjs-sys lacks pre-generated bindings for NetBSD targets.
# The Linux bindings are ABI-identical for QuickJS on the same CPU arch.
post-extract:
Home |
Main Index |
Thread Index |
Old Index