I’m working on a project using Zig and I need to retrieve environment variables at compile-time。Is there a way in Zig to achieve this?
See this post. As stated in that post, this is generally not a good idea, so don’t do it unless you have to.
6 Likes