Page MenuHomeFreeBSD

D38284.diff
No OneTemporary

D38284.diff

diff --git a/lang/zig/Makefile b/lang/zig/Makefile
--- a/lang/zig/Makefile
+++ b/lang/zig/Makefile
@@ -1,6 +1,6 @@
PORTNAME= zig
DISTVERSION= 0.10.1
-PORTREVISION?= 0
+PORTREVISION?= 1
CATEGORIES= lang
MASTER_SITES= https://ziglang.org/download/${DISTVERSION}/ \
https://ziglang.org/builds/
@@ -28,6 +28,7 @@
USES= cmake compiler:c++11-lang localbase:ldflags tar:xz
CMAKE_ON= THREADS_PREFER_PTHREAD_FLAG
+CMAKE_ARGS+= -DZIG_TARGET_MCPU=baseline # ensure we run everywhere
OPTIONS_DEFINE= DOCS STATIC
OPTIONS_DEFAULT= DOCS
diff --git a/lang/zig/files/patch-CMakeLists.txt b/lang/zig/files/patch-CMakeLists.txt
new file mode 100644
--- /dev/null
+++ b/lang/zig/files/patch-CMakeLists.txt
@@ -0,0 +1,10 @@
+--- CMakeLists.txt.orig 2023-01-31 09:51:54 UTC
++++ CMakeLists.txt
+@@ -1089,6 +1089,7 @@ set(ZIG_BUILD_ARGS
+ "-Dtarget=${ZIG_TARGET_TRIPLE}"
+ "-Dcpu=${ZIG_TARGET_MCPU}"
+ "-Dversion-string=${ZIG_VERSION}"
++ "--verbose"
+ )
+
+ add_custom_target(stage3 ALL

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 23, 4:16 AM (21 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16046374
Default Alt Text
D38284.diff (999 B)

Event Timeline