windows: disable the RC dependency detection script for Microsoft clang#15873
Conversation
eli-schwartz
left a comment
There was a problem hiding this comment.
The commit message is missing a description.
Added the explanation to the commit. |
|
Do you mean "Only" use rc dependency detection for clang-cl? If you confirm and fix the commit message I can apply this. |
The rc helper script uses flags specific for MSVC, which clang does not understand: > [19/1419] Compiling Windows resource subprojects/ffmpeg/windows_compile_resources_0_avfilterres.rc > clang: error: no such file or directory: '/showIncludes' > clang: error: no such file or directory: '/EP' > clang: error: no such file or directory: '/nologo' > clang: error: no such file or directory: '/DRC_INVOKED' > clang: error: no such file or directory: '/Tcsubprojects/ffmpeg/avfilterres.rc' > clang: error: no input files
Yeah, my bad. I forgot to distinguish between clang-cl and Microsoft Clang. |
First of all, thank you for the fix! To put it clear: clang-cl is the executable So the issue is not just about Microsoft Clang, but also with official LLVM for Windows: While this PR prevents such errors from taking place, I wonder whether this can be improved further. When using Clang with an MSVC target, it's necessary to invoke |
EDIT: I managed to make windres tell me how depfile generation works, so I'll be submitting a MR soon. |
Hi all,
This PR disables the depfile generation script when using Microsoft-supplied Clang. Currently, whenever a Windows resource is compiled, the console gets spammed with e.g.:
Fixes #15709