I need my .cfg file to know whether it's running on posix (WSL) or windows. Specifically, this is because if I don't specify the extension, then it looks for zigcc.exe which is not in the path, but zigcc.cmd is.
Why this? Because I read here that using zig compiler I can avoid Windows defender so I can distribute tools to my colleagues without having them bypass the folder.
-d:release
--cc:clang
--threads:on
when defined(posix):
--clang.exe="zigcc"
when defined(windows):
--clang.exe="zigcc.cmd"
@if windows:
clang.exxe="..."
@else:
clang.exxe="..."
@end