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: Wed Apr 24 20:48:30 UTC 2024
Modified Files:
pkgsrc/lang/zig: application.mk
Log Message:
zig: make strip optionable
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 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.7 pkgsrc/lang/zig/application.mk:1.8
--- pkgsrc/lang/zig/application.mk:1.7 Wed Apr 24 20:24:37 2024
+++ pkgsrc/lang/zig/application.mk Wed Apr 24 20:48:30 2024
@@ -1,4 +1,4 @@
-# $NetBSD: application.mk,v 1.7 2024/04/24 20:24:37 nikita Exp $
+# $NetBSD: application.mk,v 1.8 2024/04/24 20:48:30 nikita Exp $
#
# Common logic to handle zig packages
# This is only usable if they include a 'build.zig' file
@@ -25,6 +25,7 @@ ZIGCPUMODE?= -Dcpu=baseline
ZIGBUILDARGS?=
ZIGTESTARGS?=
ZIGPIE?= yes
+ZIGSTRIP?= yes
TOOL_DEPENDS+= zig-[0-9]*:../../lang/zig
USE_LANGUAGES= c
@@ -34,10 +35,12 @@ USE_LANGUAGES= c
.if ${ZIGPIE:Uyes:M[yY][eE][sS]}
ZIGBUILDARGS+= -Dpie=true
.endif
-# figure out how to detect support for this in zig packages:
-#.if ${MKDEBUG:Uyes:M[yY][eE][sS]} && ${INSTALL_UNSTRIPPED:Uyes:tl} == yes
-#ZIGBUILDARGS+= -Dstrip=true
-#.endif
+
+.if ${ZIGSTRIP:Uyes:M[yY][eE][sS]}
+. if ${MKDEBUG:Uyes:M[yY][eE][sS]} && ${INSTALL_UNSTRIPPED:Uyes:tl} == yes
+ZIGBUILDARGS+= -Dstrip=true
+. endif
+.endif
do-build:
mkdir ${WRKSRC}/tmp
Home |
Main Index |
Thread Index |
Old Index