Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108169383
D38284.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
999 B
Referenced Files
None
Subscribers
None
D38284.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D38284: lang/zig: force baseline instead of native compilation
Attached
Detach File
Event Timeline
Log In to Comment