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: unassignedclangb...@nondot.org
          Reporter: froy...@gmail.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to