Open ennis opened 1 year ago
Hm, I recently made some changes so that rustc itself attempts to convert the output to UTF-8. Maybe something similar can be done for cc-rs.
That said, it seems bad that it's being silently dropped. I'm not immediately sure why that is.
Yes, this is a problem with the Visual Studio language pack. cc-rs
silently drop cl.exe
's stdout when the language is not english. To propertly see all the errors the user must install the English language pack in the Visual Studio Installer and set the env var VSLANG=1033
to activate it in the current shell.
Check this related issue in other repo https://github.com/pyca/cryptography/issues/9746#issuecomment-1775911491
Version: 1.0.79 OS: Windows 11 x64 with MSVC (with french language module)
This build script: https://github.com/ennis/openimageio-rs/blob/master/openimageio-sys/build.rs produces the following output:
If I compile the file separately I can see the compilation errors:
Curiously the script still prints the warnings for the invalid command line parameters (
warning: cl�: Ligne de commande warning D9002�: option '-std=c++17' inconnue ignor�e
), but compilation warning and errors are not reported.It works fine (it reports the errors) if I install the VS english language pack and set that as the default language, so I suppose this is a problem related to non-UTF8 output being silently dropped somehow.