[llvm-bugs] [Bug 36701] New: add a real option to clang-cl for gcc-style dependency file generation

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Mar 13 06:43:28 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=36701

            Bug ID: 36701
           Summary: add a real option to clang-cl for gcc-style dependency
                    file generation
           Product: clang
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: froydnj at gmail.com
                CC: llvm-bugs at lists.llvm.org

As suggested in the following thread:

http://lists.llvm.org/pipermail/cfe-users/2018-March/001261.html

It would be great if clang-cl had real options for generating gcc-style
dependency files.  As pointed out in the thread, you can do something like
-Xclang -dependency-file -Xclang foo.obj; the outstanding patch we have for
Firefox does something more like:

clang-cl -Xclang -MP -Xclang -MG -Xclang -dependency-file -Xclang x.pp -Xclang
-MT -Xclang x.obj x.cpp

and it would be nice to clean that up.  Not having to specify -MT manually, for
instance, would be nice.

Looking at the code for handling gcc-style dependency options
(Clang::AddPreprocessingOptions), it also looks like there's code to indicate
that the dependency file should be deleted on failure (?), and that's something
that doesn't seem to be present in the more manual approach outlined above.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180313/73f2b8ae/attachment.html>


More information about the llvm-bugs mailing list