addSystemCommand cannot find exe available on PATH?

I think you can use findProgram, from Build System Tricks :

From the docs of std.Build.addSystemCommand:

Initializes a Step.Run with argv, which must at least have the path to the executable.

It is not like a shell that automatically resolves the command name to an executable, instead you have to do that resolution to the actual executable explicitly by using findProgram or something like it.

According to @dimdin resolving a command to an executable should work, if it is available in one of the pathes in the PATH environment variable.

1 Like