pub fn prepare_zig_linker(target: &str) -> Result<(PathBuf, PathBuf)>
Expand description

Prepare wrapper scripts for zig cc and zig c++ and returns their paths

We want to use zig cc as linker and c compiler. We want to call python -m ziglang cc, but cargo only accepts a path to an executable as linker, so we add a wrapper script. We then also use the wrapper script to pass arguments and substitute an unsupported argument.

We create different files for different args because otherwise cargo might skip recompiling even if the linker target changed