I'm passing zig cc as the compiler to a transpiler that deletes the cc part of zig cc 😦
I want to create a cross-platform file that can call zig cc, so I can name it zigcc instead
I used to do this in nim by string interpolating a file with the absolute path to the child app,
and compiling that into a separate app.
But that turned to be brittle, and I needed to recompile the app if the file changed by any reason
The main catch is that it needs to take a path to a local binary (eg: ./bin/.zig/zig cc)
and not just a blanket zig cc, relying on PATH. Otherwise the problem would be very simple.
WIth bash I'd just do:
#!/bin/sh
path/to/zig cc $@
```But that's not cross platform, so I'm ruling that out
_I don't want to maintain code for every shell_
Could there be a way to do this with Zig
better than with string interpolation+compilation? 🤔