pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/lang/zig
Module Name: pkgsrc
Committed By: nikita
Date: Sun Jan 22 19:34:22 UTC 2023
Modified Files:
pkgsrc/lang/zig: application.mk
Log Message:
zig: application.mk: document some more
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/lang/zig/application.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/lang/zig/application.mk
diff -u pkgsrc/lang/zig/application.mk:1.2 pkgsrc/lang/zig/application.mk:1.3
--- pkgsrc/lang/zig/application.mk:1.2 Thu Jan 19 20:46:22 2023
+++ pkgsrc/lang/zig/application.mk Sun Jan 22 19:34:22 2023
@@ -1,20 +1,34 @@
-# $NetBSD: application.mk,v 1.2 2023/01/19 20:46:22 nikita Exp $
+# $NetBSD: application.mk,v 1.3 2023/01/22 19:34:22 nikita Exp $
#
# Common logic to handle zig packages
# This is only usable if they include a 'build.zig' file
#
.include "../../mk/bsd.fast.prefs.mk"
-ZIGBUILDARGS?= -Drelease-fast
+# Debug build (default):
+# Fast compilation speed, Safety checks enabled, Slow runtime performance
+# Large binary size, No reproducible build requirement
+# ReleaseFast (-O ReleaseFast)
+# Fast runtime performance, Safety checks disabled, Slow compilation speed
+# Large binary size, Reproducible build
+# ReleaseSafe (-O ReleaseSafe)
+# Medium runtime performance, Safety checks enabled, Slow compilation speed
+# Large binary size, Reproducible build
+# ReleaseSmall (-O ReleaseSmall)
+# Medium runtime performance, Safety checks disabled, Slow compilation speed
+# Small binary size
+ZIGBUILDMODE?= -Drelease-fast
+ZIGBUILDARGS?=
+ZIGTESTARGS?=
BUILD_DEPENDS+= zig-[0-9]*:../../lang/zig
USE_LANGUAGES= c
do-build:
- cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} zig build ${ZIGBUILDARGS} --prefix ${DESTDIR}${PREFIX}
+ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} zig build ${ZIGBUILDMODE} ${ZIGBUILDARGS} --prefix ${DESTDIR}${PREFIX}
do-install:
- cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} zig build install ${ZIGBUILDARGS} --prefix ${DESTDIR}${PREFIX}
+ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} zig build install ${ZIGBUILDMODE} ${ZIGBUILDARGS} --prefix ${DESTDIR}${PREFIX}
do-test:
- cd ${WRKSRC} && ${SETENV} ${TEST_ENV} zig build test
+ cd ${WRKSRC} && ${SETENV} ${TEST_ENV} zig build ${ZIGBUILDMODE} ${ZIGBUILDARGS} ${ZIGTESTARGS} test
Home |
Main Index |
Thread Index |
Old Index