This primarily parses a different set of options and invokes the same
resource compiler as llvm-rc normally. Additionally, it can convert
directly to an object file (which is done with the separate cvtres tool,
or by the linker, in MSVC style setups).
(GNU windres also supports other conversions; from coff object file back
to .res, and from .res or object file back to .rc form; that's not yet
implemented.)
The other bigger complication lies in being able to imply or pass the
intended target triple, to let clang find the corresponding mingw sysroot
for finding include files, and for specifying the default output object
machine format.
It can be implied from the tool triple prefix, like
<triple>-[llvm-]windres, picked up from the windres option -F pe-x86-64
(where only BFD style format names are supported; as libbfd in binutils
doesn't support Windows on ARM, there's no such canonical name for the
ARM targets. Therefore, as an LLVM specific extension, this option is
extended to allow passing full triples.)
s/str/Str/