Linus Groh
75c717bd06
std.bit_set, std.enums: Remove .init{Empty,Full}() in favor of .empty/.full
2026-05-08 22:12:27 +01:00
Linus Groh
83da6827fd
std.mem: Remove native/foreign variants of {read,write}PackedInt()
2026-05-08 21:59:09 +01:00
Linus Groh
fcc0a5a913
std.mem.Allocator: Remove dupeZ() in favor of dupeSentinel()
2026-05-03 21:42:16 +01:00
Alex Rønne Petersen
ca0b3318a0
std.Target: update CPU and feature data to LLVM 22
2026-04-25 21:54:47 +02:00
Ryan Liptak
3252a05531
Prefer <err> => |e| return e over <err> => return <err>
...
Avoids the potential for a typo on the `return <err>` side of the prong
2026-04-20 18:03:14 -07:00
Mason Remaley
e2c3920fb1
Renames buffer first allocator in compiler and std
2026-04-18 14:51:49 -07:00
Mason Remaley
8c96487bb9
Updates all uses of StackFallbackAllocator
2026-04-18 14:51:49 -07:00
Andrew Kelley
68bf81432c
update aro to latest
...
upstream commit 5f5a050569a95ecc40a426f0c3666ae7ef987ede
2026-04-11 15:17:46 -07:00
nektro
e73257dec2
lib/std: BitSet,EnumSet: replace initEmpty/initFull with decl literals ( #31469 )
...
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/31469
Reviewed-by: Andrew Kelley <andrew@ziglang.org >
Co-authored-by: nektro <hello@nektro.net >
Co-committed-by: nektro <hello@nektro.net >
2026-04-05 05:12:13 +02:00
Kendall Condon
02e8339ca7
zig build fmt
2026-03-12 17:44:03 -04:00
Meghan Denny
bd5dc75068
std: remove GeneralPurposeAllocator alias
2026-03-11 01:55:49 +01:00
Matthew Lugg
82be338964
aro: stop depending on ArrayList default field values
2026-03-10 10:26:13 +00:00
Andrew Kelley
922ab8b8bc
std: finish moving time to Io interface
...
Importantly, adds ability to get Clock resolution, which may be zero.
This allows error.Unexpected and error.ClockUnsupported to be removed
from timeout and clock reading error sets.
2026-02-02 23:02:31 -08:00
Sertonix
47cc233f22
aro: define arch macros for riscv
...
Fixes some test failure:
test
+- test-standalone
+- standalone_test_cases
+- standalone_test_cases.glibc_compat
+- CheckObject
+- compile exe native-linux-gnu.2.38 Debug native-linux-gnu.2.38 64 errors
test/standalone/glibc_compat/glibc_runtime_check.zig:11:18: error: C import failed
const c_malloc = @cImport(
^~~~~~~~
referenced by:
checkReallocarray: test/standalone/glibc_compat/glibc_runtime_check.zig:46:27
main: test/standalone/glibc_compat/glibc_runtime_check.zig:112:26
4 reference(s) hidden; use '-freference-trace=6' to see all references
error: translation failure
build/stage3/lib/zig/libc/include/riscv-linux-gnu/bits/wordsize.h:22:3: error: unsupported ABI
2026-01-13 20:01:52 +01:00
Andrew Kelley
7248b4a4e4
std.fs: deprecate base64 APIs
...
100% of std.fs is now deprecated.
2026-01-07 17:33:06 -08:00
Andrew Kelley
1f1381a866
update API usage of std.crypto.random to io.random
2026-01-07 11:03:36 -08:00
Andrew Kelley
1070c2a71a
rename env_map to environ_map
...
For naming consistency with `std.process.Environ.Map`.
2026-01-04 00:27:09 -08:00
Andrew Kelley
bf74827ddb
test-standalone: update more cases to new main API
2026-01-04 00:27:08 -08:00
Andrew Kelley
f28802a9c6
zig libc: fix subcommand
...
This branch regressed the child process "run" mechanism because it
didn't pass the correct stdin, stdout, stderr values to process.spawn
Fixed now.
2026-01-04 00:27:08 -08:00
Andrew Kelley
32af0f6154
std: move child process APIs to std.Io
...
this gets the build runner compiling again on linux
this work is incomplete; it only moves code around so that environment
variables can be wrangled properly. a future commit will need to audit
the cancelation and error handling of this moved logic.
2026-01-04 00:27:08 -08:00
Andrew Kelley
0870f17501
fix aro and resinator compilation errors
2025-12-23 22:15:12 -08:00
Andrew Kelley
691afee786
langref: fix build failure
2025-12-23 22:15:12 -08:00
Andrew Kelley
33e302d67a
update remaining calls to std.Io.Threaded.init
2025-12-23 22:15:12 -08:00
Andrew Kelley
a5b719e9eb
compiler: fix build failures from std.Io-fs
2025-12-23 22:15:10 -08:00
Andrew Kelley
608145c2f0
fix more fallout from locking stderr
2025-12-23 22:15:10 -08:00
Andrew Kelley
16bd2e137e
compiler: fix most compilation errors from std.fs changes
2025-12-23 22:15:09 -08:00
Andrew Kelley
6484101f78
update occurences of std.fs.openDirAbsolute
2025-12-23 22:15:09 -08:00
Andrew Kelley
16f8af1b9a
compiler: update various code to new fs API
2025-12-23 22:15:09 -08:00
Andrew Kelley
68621afd2e
std.tar: update fs API calls to take io argument
2025-12-23 22:15:09 -08:00
Andrew Kelley
950d18ef69
update all access() to access(io)
2025-12-23 22:15:08 -08:00
Andrew Kelley
264d714321
update all openDir() sites to accept io instance
2025-12-23 22:15:08 -08:00
Andrew Kelley
f53248a409
update all std.fs.cwd() to std.Io.Dir.cwd()
2025-12-23 22:15:08 -08:00
Andrew Kelley
8328de24f1
update all occurrences of openFile to receive an io instance
2025-12-23 22:15:08 -08:00
Andrew Kelley
dd1d15b72a
update all occurrences of std.fs.Dir to std.Io.Dir
2025-12-23 22:15:08 -08:00
Andrew Kelley
3204fb7569
update all occurrences of std.fs.File to std.Io.File
2025-12-23 22:15:07 -08:00
Andrew Kelley
aafddc2ea1
update all occurrences of close() to close(io)
2025-12-23 22:15:07 -08:00
Alex Rønne Petersen
c1daad3d68
aro: define _CALL_ELF to 2 for powerpc64(le)
2025-12-12 00:52:00 +01:00
Matthew Lugg
b5ff96b4d2
std.heap: remove raw_c_allocator
...
After https://codeberg.org/ziglang/zig/pulls/30103 , `raw_c_allocator` is
redundant. It existed to avoid overhead when you could assert that all
of your `Allocator` usage was going to be compatible with the C `malloc`
API, but the standard `c_allocator` is now able to avoid that overhead
*in the case* that your usage is compatible (and use the less efficient
path in the rare case where it's not), so there's no need for the raw
version anymore. Leaving it in `std.heap` at this point seems like it
would just be a footgun.
2025-12-06 22:08:40 +01:00
Linus Groh
39fa831947
std: Remove a handful of things deprecated during the 0.15 release cycle
...
- std.Build.Step.Compile.root_module mutators -> std.Build.Module
- std.Build.Step.Compile.want_lto -> std.Build.Step.Compile.lto
- std.Build.Step.ConfigHeader.getOutput -> std.Build.Step.ConfigHeader.getOutputFile
- std.Build.Step.Run.max_stdio_size -> std.Build.Step.Run.stdio_limit
- std.enums.nameCast -> @field(E, tag_name) / @field(E, @tagName(tag))
- std.Io.tty.detectConfig -> std.Io.tty.Config.detect
- std.mem.trimLeft -> std.mem.trimStart
- std.mem.trimRight -> std.mem.trimEnd
- std.meta.intToEnum -> std.enums.fromInt
- std.meta.TagPayload -> @FieldType(U, @tagName(tag))
- std.meta.TagPayloadByName -> @FieldType(U, tag_name)
2025-11-27 20:17:04 +00:00
Alex Rønne Petersen
16fc083f2b
std.Target: remove Abi.code16
...
This functionality -- if it's actually needed -- can be reintroduced through
some other mechanism. An ABI is clearly not the right way to represent it.
closes #25918
2025-11-23 10:22:03 +01:00
Ali Cheraghi
dec1163fbb
all: replace all @Type usages
...
Co-authored-by: Matthew Lugg <mlugg@mlugg.co.uk >
2025-11-22 22:42:38 +00:00
Alex Rønne Petersen
f3eef35c05
aro: unbreak s390x
...
https://github.com/ziglang/zig/pull/25780#discussion_r2548496117
2025-11-21 06:28:19 +01:00
Veikka Tuominen
21f3ff2a8d
update Aro and translate-c to latest
2025-11-20 13:12:53 +02:00
Alex Rønne Petersen
959a3612c2
aro: define arch macros for s390x
2025-11-19 01:42:45 +01:00
Alex Rønne Petersen
9ab7eec23e
represent Mac Catalyst as aarch64-maccatalyst-none rather than aarch64-ios-macabi
...
Apple's own headers and tbd files prefer to think of Mac Catalyst as a distinct
OS target. Earlier, when DriverKit support was added to LLVM, it was represented
a distinct OS. So why Apple decided to only represent Mac Catalyst as an ABI in
the target triple is beyond me. But this isn't the first time they've ignored
established target triple norms (see: armv7k and aarch64_32) and it probably
won't be the last.
While doing this, I also audited all Darwin OS prongs throughout the codebase
and made sure they cover all the tags.
2025-11-14 11:33:35 +01:00
Alex Rønne Petersen
dfd7b7f233
std.Target: remove Abi.cygnus
...
There is approximately zero chance of the Zig team ever spending any effort on
supporting Cygwin; the MSVC and MinGW-w64 ABIs are superior in every way that
matters, and not least because they lead to binaries that just run natively on
Windows without needing a POSIX emulation environment installed.
2025-11-12 22:39:04 +01:00
Alex Rønne Petersen
2c470d24b3
std.Target: add Arch tag and info for kvx
2025-11-10 08:20:21 +01:00
Andrew Kelley
a072d821be
Merge pull request #25592 from ziglang/init-std.Io
...
std: Introduce `Io` Interface
2025-10-29 13:51:37 -07:00
Alex Rønne Petersen
a7119d4269
remove all IBM AIX and z/OS support
...
As with Solaris (dba1bf9353 ), we have no way to
actually audit contributions for these OSs. IBM also makes it even harder than
Oracle to actually obtain these OSs.
closes #23695
closes #23694
closes #3655
closes #23693
2025-10-29 14:25:51 +01:00
Andrew Kelley
97b9cc0adf
aro: avoid asking for the time
...
this value should be calculated earlier and passed in
2025-10-29 06:20:50 -07:00