zigzap / zap

blazingly fast backends in zig
MIT License
1.98k stars 71 forks source link

Fix build.zig to allow cross compilation on windows #103

Closed LordAsdi closed 1 month ago

LordAsdi commented 1 month ago

By replacing the linux only std.posix.getenv with the cross platform std.process.getEnvVarOwned in build.zig it is now possible to cross compile zap on a windows host.

renerocksai commented 1 month ago

Amazing! I can't verify so I have to trust you :smile:.