Description
When cross-compiling for Windows MSVC on macOS, I encounter a warning. My local machine has clang-cl installed, and the compiled output appears to be normal. The warning is as follows:
warning: VibeService@0.1.0: Compiler family detection failed due to error: ToolExecError: command did not execute successfully (status code exit status: 1): "clang-cl" "-E" "/Users/linuschen/rust_projects/my_project/target/x86_64-pc-windows-msvc/release/build/MyProject-0a0478fd59c1ac07/out/11385383916581809335detect_compiler_family.c"
I found that there was an issue before, but I still encountered this problem in the latest version 1.2.17
#1327
I found the problem by debugging the source code. After the first run_output
judgment failed, an error was directly returned, and there was no chance to judge stdout.contains("-Wslash-u-filename")
, which caused a warning to be thrown.
Lines 201 to 216 in 59578ad
I want to modify run_output
so that there is output when it fails to determine whether it is a real failure. However, if the child fails to execute and I try to print stdout, it is empty, so I don't know if there is a better way to modify it.
Lines 347 to 365 in 59578ad