pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/zig zig: updated to 0.6.0
details: https://anonhg.NetBSD.org/pkgsrc/rev/347dfec43e84
branches: trunk
changeset: 427576:347dfec43e84
user: adam <adam%pkgsrc.org@localhost>
date: Sat Apr 18 08:08:07 2020 +0000
description:
zig: updated to 0.6.0
Language Changes in 0.6.0:
Improved names of error sets when using merge error sets operator (||).
pub syntax for container fields is removed.
Type coercion from *[0]T to E![]const T is now allowed. This is an unambiguous, safe cast.
asm now accepts comptime-known values, rather than requiring string literal syntax.
Removed compile error for peer result ?comptime_int and null.
Ability to pass comptime types and non comptime types to same parameter.
@typeOf is renamed to @TypeOf. zig fmt automatically performs the conversion, and the next release of Zig after this one will remove the automatic conversion.
Ability to switch on pointer types.
Multiline strings in test and library names are disallowed.
Zig language no longer requires the expression a else unreachable with comptime a to produce a comptime result.
Timon Kruiper implemented casting between [*c]T and ?[*:0]T on fn parameter.
Timon Kruiper improved @typeInfo to lazily resolve declarations. This way all the declarations in a namespace won't be resolved until the user actually uses the declarations slice in the builtin
TypeInfo union.
@ptrCast supports casting a slice to a pointer.
LemonBoy implemented peer type resolution between ?[]T and *[N]T.
There is now peer type resolution between mixed-const []T and *[N]T.
diffstat:
lang/zig/Makefile | 7 +-
lang/zig/PLIST | 726 +++++++++++++++------
lang/zig/distinfo | 19 +-
lang/zig/patches/patch-CMakeLists.txt | 15 -
lang/zig/patches/patch-lib_std_c.zig | 12 -
lang/zig/patches/patch-lib_std_c_netbsd.zig | 27 -
lang/zig/patches/patch-lib_std_fs.zig | 24 -
lang/zig/patches/patch-lib_std_fs_file.zig | 33 -
lang/zig/patches/patch-lib_std_os.zig | 72 --
lang/zig/patches/patch-lib_std_os_bits_netbsd.zig | 467 --------------
lang/zig/patches/patch-lib_std_thread.zig | 52 -
lang/zig/patches/patch-src_link.cpp | 18 -
12 files changed, 532 insertions(+), 940 deletions(-)
diffs (truncated from 2998 to 300 lines):
diff -r 05b1fbcac141 -r 347dfec43e84 lang/zig/Makefile
--- a/lang/zig/Makefile Sat Apr 18 08:05:11 2020 +0000
+++ b/lang/zig/Makefile Sat Apr 18 08:08:07 2020 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.5 2020/03/25 22:27:20 nia Exp $
+# $NetBSD: Makefile,v 1.6 2020/04/18 08:08:07 adam Exp $
-DISTNAME= zig-0.5.0
+DISTNAME= zig-0.6.0
CATEGORIES= lang
MASTER_SITES= https://ziglang.org/download/${PKGVERSION_NOREV}/
EXTRACT_SUFX= .tar.xz
@@ -11,7 +11,7 @@
LICENSE= mit
USE_CMAKE= yes
-USE_LANGUAGES= c c++
+USE_LANGUAGES= c c++14
CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release
CMAKE_ARGS+= -DDESTDIR=${DESTDIR}
@@ -19,6 +19,7 @@
CHECK_PORTABILITY_SKIP+= ci/azure/macos_script
BUILDLINK_TRANSFORM+= rm:-Werror
+.include "../../devel/lld/buildlink3.mk"
.include "../../lang/clang/buildlink3.mk"
.include "../../lang/llvm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 05b1fbcac141 -r 347dfec43e84 lang/zig/PLIST
--- a/lang/zig/PLIST Sat Apr 18 08:05:11 2020 +0000
+++ b/lang/zig/PLIST Sat Apr 18 08:08:07 2020 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2020/03/25 22:27:20 nia Exp $
+@comment $NetBSD: PLIST,v 1.5 2020/04/18 08:08:07 adam Exp $
bin/zig
lib/zig/include/__clang_cuda_builtin_vars.h
lib/zig/include/__clang_cuda_cmath.h
@@ -16,7 +16,9 @@
lib/zig/include/ammintrin.h
lib/zig/include/arm64intr.h
lib/zig/include/arm_acle.h
+lib/zig/include/arm_cmse.h
lib/zig/include/arm_fp16.h
+lib/zig/include/arm_mve.h
lib/zig/include/arm_neon.h
lib/zig/include/armintr.h
lib/zig/include/avx2intrin.h
@@ -98,6 +100,9 @@
lib/zig/include/ppc_wrappers/emmintrin.h
lib/zig/include/ppc_wrappers/mm_malloc.h
lib/zig/include/ppc_wrappers/mmintrin.h
+lib/zig/include/ppc_wrappers/pmmintrin.h
+lib/zig/include/ppc_wrappers/smmintrin.h
+lib/zig/include/ppc_wrappers/tmmintrin.h
lib/zig/include/ppc_wrappers/xmmintrin.h
lib/zig/include/prfchwintrin.h
lib/zig/include/ptwriteintrin.h
@@ -134,6 +139,7 @@
lib/zig/include/xsaveoptintrin.h
lib/zig/include/xsavesintrin.h
lib/zig/include/xtestintrin.h
+lib/zig/libc/glibc/LICENSES
lib/zig/libc/glibc/abi.txt
lib/zig/libc/glibc/bits/byteswap.h
lib/zig/libc/glibc/bits/endian.h
@@ -162,6 +168,7 @@
lib/zig/libc/glibc/fns.txt
lib/zig/libc/glibc/include/alloca.h
lib/zig/libc/glibc/include/bits/cpu-set.h
+lib/zig/libc/glibc/include/bits/endian.h
lib/zig/libc/glibc/include/bits/statx.h
lib/zig/libc/glibc/include/bits/stdlib-float.h
lib/zig/libc/glibc/include/bits/types.h
@@ -228,22 +235,23 @@
lib/zig/libc/glibc/stdlib/bits/stdlib-float.h
lib/zig/libc/glibc/stdlib/exit.h
lib/zig/libc/glibc/stdlib/stdlib.h
+lib/zig/libc/glibc/string/bits/endian.h
lib/zig/libc/glibc/string/endian.h
-lib/zig/libc/glibc/sysdeps/aarch64/bits/endian.h
+lib/zig/libc/glibc/sysdeps/aarch64/bits/endianness.h
lib/zig/libc/glibc/sysdeps/aarch64/crti.S
lib/zig/libc/glibc/sysdeps/aarch64/crtn.S
lib/zig/libc/glibc/sysdeps/aarch64/dl-sysdep.h
lib/zig/libc/glibc/sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
lib/zig/libc/glibc/sysdeps/aarch64/start.S
lib/zig/libc/glibc/sysdeps/aarch64/sysdep.h
-lib/zig/libc/glibc/sysdeps/alpha/bits/endian.h
+lib/zig/libc/glibc/sysdeps/alpha/bits/endianness.h
lib/zig/libc/glibc/sysdeps/alpha/crti.S
lib/zig/libc/glibc/sysdeps/alpha/crtn.S
lib/zig/libc/glibc/sysdeps/alpha/dl-dtprocnum.h
lib/zig/libc/glibc/sysdeps/alpha/dl-sysdep.h
lib/zig/libc/glibc/sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
lib/zig/libc/glibc/sysdeps/alpha/start.S
-lib/zig/libc/glibc/sysdeps/arm/bits/endian.h
+lib/zig/libc/glibc/sysdeps/arm/bits/endianness.h
lib/zig/libc/glibc/sysdeps/arm/crti.S
lib/zig/libc/glibc/sysdeps/arm/crtn.S
lib/zig/libc/glibc/sysdeps/arm/dl-sysdep.h
@@ -259,7 +267,7 @@
lib/zig/libc/glibc/sysdeps/generic/sys/syscall.h
lib/zig/libc/glibc/sysdeps/generic/sysdep.h
lib/zig/libc/glibc/sysdeps/generic/tls.h
-lib/zig/libc/glibc/sysdeps/hppa/bits/endian.h
+lib/zig/libc/glibc/sysdeps/hppa/bits/endianness.h
lib/zig/libc/glibc/sysdeps/hppa/crti.S
lib/zig/libc/glibc/sysdeps/hppa/crtn.S
lib/zig/libc/glibc/sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
@@ -284,7 +292,7 @@
lib/zig/libc/glibc/sysdeps/ia64/sysdep.h
lib/zig/libc/glibc/sysdeps/init_array/crti.S
lib/zig/libc/glibc/sysdeps/init_array/crtn.S
-lib/zig/libc/glibc/sysdeps/m68k/bits/endian.h
+lib/zig/libc/glibc/sysdeps/m68k/bits/endianness.h
lib/zig/libc/glibc/sysdeps/m68k/coldfire/sysdep.h
lib/zig/libc/glibc/sysdeps/m68k/crti.S
lib/zig/libc/glibc/sysdeps/m68k/crtn.S
@@ -301,13 +309,13 @@
lib/zig/libc/glibc/sysdeps/mach/libc-lock.h
lib/zig/libc/glibc/sysdeps/mach/sys/syscall.h
lib/zig/libc/glibc/sysdeps/mach/sysdep.h
-lib/zig/libc/glibc/sysdeps/microblaze/bits/endian.h
+lib/zig/libc/glibc/sysdeps/microblaze/bits/endianness.h
lib/zig/libc/glibc/sysdeps/microblaze/crti.S
lib/zig/libc/glibc/sysdeps/microblaze/crtn.S
lib/zig/libc/glibc/sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
lib/zig/libc/glibc/sysdeps/microblaze/start.S
lib/zig/libc/glibc/sysdeps/microblaze/sysdep.h
-lib/zig/libc/glibc/sysdeps/mips/bits/endian.h
+lib/zig/libc/glibc/sysdeps/mips/bits/endianness.h
lib/zig/libc/glibc/sysdeps/mips/dl-dtprocnum.h
lib/zig/libc/glibc/sysdeps/mips/mips32/crti.S
lib/zig/libc/glibc/sysdeps/mips/mips32/crtn.S
@@ -322,7 +330,7 @@
lib/zig/libc/glibc/sysdeps/nptl/libc-lock.h
lib/zig/libc/glibc/sysdeps/nptl/libc-lockP.h
lib/zig/libc/glibc/sysdeps/nptl/pthread.h
-lib/zig/libc/glibc/sysdeps/powerpc/bits/endian.h
+lib/zig/libc/glibc/sysdeps/powerpc/bits/endianness.h
lib/zig/libc/glibc/sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
lib/zig/libc/glibc/sysdeps/powerpc/powerpc32/crti.S
lib/zig/libc/glibc/sysdeps/powerpc/powerpc32/crtn.S
@@ -336,10 +344,10 @@
lib/zig/libc/glibc/sysdeps/powerpc/powerpc64/start.S
lib/zig/libc/glibc/sysdeps/powerpc/powerpc64/sysdep.h
lib/zig/libc/glibc/sysdeps/powerpc/sysdep.h
-lib/zig/libc/glibc/sysdeps/riscv/bits/endian.h
+lib/zig/libc/glibc/sysdeps/riscv/bits/endianness.h
lib/zig/libc/glibc/sysdeps/riscv/nptl/bits/pthreadtypes-arch.h
lib/zig/libc/glibc/sysdeps/riscv/start.S
-lib/zig/libc/glibc/sysdeps/s390/bits/endian.h
+lib/zig/libc/glibc/sysdeps/s390/bits/endianness.h
lib/zig/libc/glibc/sysdeps/s390/nptl/bits/pthreadtypes-arch.h
lib/zig/libc/glibc/sysdeps/s390/s390-32/crti.S
lib/zig/libc/glibc/sysdeps/s390/s390-32/crtn.S
@@ -351,13 +359,13 @@
lib/zig/libc/glibc/sysdeps/s390/s390-64/crtn.S
lib/zig/libc/glibc/sysdeps/s390/s390-64/start.S
lib/zig/libc/glibc/sysdeps/s390/s390-64/sysdep.h
-lib/zig/libc/glibc/sysdeps/sh/bits/endian.h
+lib/zig/libc/glibc/sysdeps/sh/bits/endianness.h
lib/zig/libc/glibc/sysdeps/sh/crti.S
lib/zig/libc/glibc/sysdeps/sh/crtn.S
lib/zig/libc/glibc/sysdeps/sh/nptl/bits/pthreadtypes-arch.h
lib/zig/libc/glibc/sysdeps/sh/start.S
lib/zig/libc/glibc/sysdeps/sh/sysdep.h
-lib/zig/libc/glibc/sysdeps/sparc/bits/endian.h
+lib/zig/libc/glibc/sysdeps/sparc/bits/endianness.h
lib/zig/libc/glibc/sysdeps/sparc/crti.S
lib/zig/libc/glibc/sysdeps/sparc/crtn.S
lib/zig/libc/glibc/sysdeps/sparc/dl-dtprocnum.h
@@ -398,12 +406,10 @@
lib/zig/libc/glibc/sysdeps/unix/sysv/linux/i386/dl-sysdep.h
lib/zig/libc/glibc/sysdeps/unix/sysv/linux/i386/kernel-features.h
lib/zig/libc/glibc/sysdeps/unix/sysv/linux/i386/sysdep.h
-lib/zig/libc/glibc/sysdeps/unix/sysv/linux/ia64/bits/endian.h
lib/zig/libc/glibc/sysdeps/unix/sysv/linux/ia64/bits/stat.h
lib/zig/libc/glibc/sysdeps/unix/sysv/linux/ia64/dl-sysdep.h
lib/zig/libc/glibc/sysdeps/unix/sysv/linux/ia64/kernel-features.h
lib/zig/libc/glibc/sysdeps/unix/sysv/linux/ia64/sysdep.h
-lib/zig/libc/glibc/sysdeps/unix/sysv/linux/include/bits/syscall.h
lib/zig/libc/glibc/sysdeps/unix/sysv/linux/include/sys/timex.h
lib/zig/libc/glibc/sysdeps/unix/sysv/linux/kernel-features.h
lib/zig/libc/glibc/sysdeps/unix/sysv/linux/m68k/bits/stat.h
@@ -452,7 +458,7 @@
lib/zig/libc/glibc/sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h
lib/zig/libc/glibc/sysdeps/unix/x86_64/sysdep.h
lib/zig/libc/glibc/sysdeps/wordsize-32/divdi3-symbol-hacks.h
-lib/zig/libc/glibc/sysdeps/x86/bits/endian.h
+lib/zig/libc/glibc/sysdeps/x86/bits/endianness.h
lib/zig/libc/glibc/sysdeps/x86/bits/select.h
lib/zig/libc/glibc/sysdeps/x86/bits/wordsize.h
lib/zig/libc/glibc/sysdeps/x86/nptl/bits/pthreadtypes-arch.h
@@ -492,13 +498,12 @@
lib/zig/libc/include/aarch64-linux-any/asm/statfs.h
lib/zig/libc/include/aarch64-linux-any/asm/ucontext.h
lib/zig/libc/include/aarch64-linux-any/asm/unistd.h
-lib/zig/libc/include/aarch64-linux-gnu/bits/endian.h
+lib/zig/libc/include/aarch64-linux-gnu/bits/endianness.h
lib/zig/libc/include/aarch64-linux-gnu/bits/fcntl.h
lib/zig/libc/include/aarch64-linux-gnu/bits/fenv.h
lib/zig/libc/include/aarch64-linux-gnu/bits/floatn.h
lib/zig/libc/include/aarch64-linux-gnu/bits/fp-fast.h
lib/zig/libc/include/aarch64-linux-gnu/bits/hwcap.h
-lib/zig/libc/include/aarch64-linux-gnu/bits/ipc.h
lib/zig/libc/include/aarch64-linux-gnu/bits/link.h
lib/zig/libc/include/aarch64-linux-gnu/bits/local_lim.h
lib/zig/libc/include/aarch64-linux-gnu/bits/long-double.h
@@ -509,6 +514,7 @@
lib/zig/libc/include/aarch64-linux-gnu/bits/sigstack.h
lib/zig/libc/include/aarch64-linux-gnu/bits/stat.h
lib/zig/libc/include/aarch64-linux-gnu/bits/statfs.h
+lib/zig/libc/include/aarch64-linux-gnu/bits/struct_rwlock.h
lib/zig/libc/include/aarch64-linux-gnu/bits/typesizes.h
lib/zig/libc/include/aarch64-linux-gnu/bits/wordsize.h
lib/zig/libc/include/aarch64-linux-gnu/fpu_control.h
@@ -522,20 +528,12 @@
lib/zig/libc/include/aarch64-linux-gnu/sys/ucontext.h
lib/zig/libc/include/aarch64-linux-gnu/sys/user.h
lib/zig/libc/include/aarch64-linux-musl/bits/alltypes.h
-lib/zig/libc/include/aarch64-linux-musl/bits/endian.h
lib/zig/libc/include/aarch64-linux-musl/bits/fcntl.h
lib/zig/libc/include/aarch64-linux-musl/bits/fenv.h
lib/zig/libc/include/aarch64-linux-musl/bits/float.h
lib/zig/libc/include/aarch64-linux-musl/bits/hwcap.h
-lib/zig/libc/include/aarch64-linux-musl/bits/ipc.h
-lib/zig/libc/include/aarch64-linux-musl/bits/limits.h
-lib/zig/libc/include/aarch64-linux-musl/bits/posix.h
-lib/zig/libc/include/aarch64-linux-musl/bits/reg.h
-lib/zig/libc/include/aarch64-linux-musl/bits/sem.h
lib/zig/libc/include/aarch64-linux-musl/bits/setjmp.h
lib/zig/libc/include/aarch64-linux-musl/bits/signal.h
-lib/zig/libc/include/aarch64-linux-musl/bits/socket.h
-lib/zig/libc/include/aarch64-linux-musl/bits/stat.h
lib/zig/libc/include/aarch64-linux-musl/bits/syscall.h
lib/zig/libc/include/aarch64-linux-musl/bits/user.h
lib/zig/libc/include/aarch64_be-linux-any/asm/auxvec.h
@@ -558,13 +556,12 @@
lib/zig/libc/include/aarch64_be-linux-any/asm/statfs.h
lib/zig/libc/include/aarch64_be-linux-any/asm/ucontext.h
lib/zig/libc/include/aarch64_be-linux-any/asm/unistd.h
-lib/zig/libc/include/aarch64_be-linux-gnu/bits/endian.h
+lib/zig/libc/include/aarch64_be-linux-gnu/bits/endianness.h
lib/zig/libc/include/aarch64_be-linux-gnu/bits/fcntl.h
lib/zig/libc/include/aarch64_be-linux-gnu/bits/fenv.h
lib/zig/libc/include/aarch64_be-linux-gnu/bits/floatn.h
lib/zig/libc/include/aarch64_be-linux-gnu/bits/fp-fast.h
lib/zig/libc/include/aarch64_be-linux-gnu/bits/hwcap.h
-lib/zig/libc/include/aarch64_be-linux-gnu/bits/ipc.h
lib/zig/libc/include/aarch64_be-linux-gnu/bits/link.h
lib/zig/libc/include/aarch64_be-linux-gnu/bits/local_lim.h
lib/zig/libc/include/aarch64_be-linux-gnu/bits/long-double.h
@@ -575,6 +572,7 @@
lib/zig/libc/include/aarch64_be-linux-gnu/bits/sigstack.h
lib/zig/libc/include/aarch64_be-linux-gnu/bits/stat.h
lib/zig/libc/include/aarch64_be-linux-gnu/bits/statfs.h
+lib/zig/libc/include/aarch64_be-linux-gnu/bits/struct_rwlock.h
lib/zig/libc/include/aarch64_be-linux-gnu/bits/typesizes.h
lib/zig/libc/include/aarch64_be-linux-gnu/bits/wordsize.h
lib/zig/libc/include/aarch64_be-linux-gnu/fpu_control.h
@@ -1411,7 +1409,9 @@
lib/zig/libc/include/any-windows-any/GL/glext.h
lib/zig/libc/include/any-windows-any/GL/glu.h
lib/zig/libc/include/any-windows-any/GL/glxext.h
+lib/zig/libc/include/any-windows-any/GL/wgl.h
lib/zig/libc/include/any-windows-any/GL/wglext.h
+lib/zig/libc/include/any-windows-any/KHR/khrplatform.h
lib/zig/libc/include/any-windows-any/_bsd_types.h
lib/zig/libc/include/any-windows-any/_cygwin.h
lib/zig/libc/include/any-windows-any/_dbdao.h
@@ -1419,8 +1419,6 @@
lib/zig/libc/include/any-windows-any/_mingw_dxhelper.h
lib/zig/libc/include/any-windows-any/_mingw_mac.h
lib/zig/libc/include/any-windows-any/_mingw_off_t.h
-lib/zig/libc/include/any-windows-any/_mingw_print_pop.h
-lib/zig/libc/include/any-windows-any/_mingw_print_push.h
lib/zig/libc/include/any-windows-any/_mingw_secapi.h
lib/zig/libc/include/any-windows-any/_mingw_stat64.h
lib/zig/libc/include/any-windows-any/_mingw_stdarg.h
@@ -1586,11 +1584,14 @@
lib/zig/libc/include/any-windows-any/compstui.h
lib/zig/libc/include/any-windows-any/comsvcs.h
lib/zig/libc/include/any-windows-any/comutil.h
+lib/zig/libc/include/any-windows-any/concurrencysal.h
lib/zig/libc/include/any-windows-any/confpriv.h
lib/zig/libc/include/any-windows-any/conio.h
lib/zig/libc/include/any-windows-any/control.h
lib/zig/libc/include/any-windows-any/cor.h
+lib/zig/libc/include/any-windows-any/corecrt.h
lib/zig/libc/include/any-windows-any/corecrt_startup.h
+lib/zig/libc/include/any-windows-any/corecrt_wstdlib.h
lib/zig/libc/include/any-windows-any/corerror.h
lib/zig/libc/include/any-windows-any/corhdr.h
lib/zig/libc/include/any-windows-any/correg.h
@@ -1728,6 +1729,7 @@
lib/zig/libc/include/any-windows-any/ddk/ntddsnd.h
lib/zig/libc/include/any-windows-any/ddk/ntifs.h
lib/zig/libc/include/any-windows-any/ddk/ntimage.h
Home |
Main Index |
Thread Index |
Old Index