#Obtain environment variable in Zig 0.16.0
1 messages · Page 1 of 1 (latest)
look up juicy main
More info: https://codeberg.org/ziglang/zig/pulls/30644
Codeberg.org
Happy New Year! 🥳 I'm celebrating the arrival of 2026 in my favorite way: breaking "Hello, World!" again!
Mainly the goal was to delete the "environ" global variable as well as the "argv" global variable because they are footguns. However, in doing so, I ended up needing to integrate process API...
Thanks!
How do I access an environment variable in a build script tho. Does std.Build have any access to the Init?
std.Build has a field called graph, and std.Build.Graph has an environ_map, also io
maybe you can use that.
yes. That works