If running plain cppwinrt -v from a console with the Windows SDK in PATH I get the following error:
cppwinrt : error canonical: The system cannot find the file specified.: "cppwinrt.exe"
It seems the following line expects argv[0] to be an actual path to cppwinrt.exe without the .exe specified, which is not necessarily the case (e.g. when running from PATH, but also for example on non-Windows platforms with symlinks or certain kinds of exec being used):
|
if (settings.verbose) |
|
{ |
|
w.write(" tool: %\n", canonical(path(argv[0]).replace_extension("exe")).string()); |
If running plain
cppwinrt -vfrom a console with the Windows SDK in PATH I get the following error:It seems the following line expects argv[0] to be an actual path to
cppwinrt.exewithout the.exespecified, which is not necessarily the case (e.g. when running from PATH, but also for example on non-Windows platforms with symlinks or certain kinds ofexecbeing used):cppwinrt/cppwinrt/main.cpp
Lines 269 to 271 in e192094