<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - add a real option to clang-cl for gcc-style dependency file generation"
   href="https://bugs.llvm.org/show_bug.cgi?id=36701">36701</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>add a real option to clang-cl for gcc-style dependency file generation
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>froydnj@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>As suggested in the following thread:

<a href="http://lists.llvm.org/pipermail/cfe-users/2018-March/001261.html">http://lists.llvm.org/pipermail/cfe-users/2018-March/001261.html</a>

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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>