[cfe-users] Writing gcc-style dependency files with clang-cl
Ted Mielczarek via cfe-users
cfe-users at lists.llvm.org
Tue Mar 6 06:49:40 PST 2018
We're continuing to work on making Firefox build with clang-cl in more configurations, and one of my colleagues recently wondered if we could generate Makefile dependencies with clang-cl the same way we would with clang or gcc (-MP -MD etc) instead of using the wrapper script that we use with MSVC that parses the output of -showIncludes. Passing these options to clang-cl with `-Xclang` doesn't seem to work, however:
$ clang-cl -Fohello.obj -c hello.cpp -Xclang -MP -Xclang -MD -Xclang -MF -Xclang bar
error: unknown argument: '-MD'
error: unknown argument: '-MF'
Is this something we could make work?
More information about the cfe-users