#Obtain environment variable in Zig 0.16.0

1 messages · Page 1 of 1 (latest)

weary dirge
#

There was getEnvVarOwned but has since been replaced by std.process.Environ. I tried using that but only managed to construct an empty environment map.

dusky mason
#

look up juicy main

potent cobalt
weary dirge
#

Thanks!

weary dirge
#

How do I access an environment variable in a build script tho. Does std.Build have any access to the Init?

grim forum
#

I haven't found anything like that...

#

and without you can't...

potent cobalt
weary dirge
#

yes. That works