<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 - clang-cl silently ignores -working-directory on windows"
   href="https://bugs.llvm.org/show_bug.cgi?id=36648">36648</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang-cl silently ignores -working-directory on windows
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>5.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </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>daan.j.demeyer@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=20024" name="attach_20024" title="Minimal reproduce of issue (follow instructions in comment)">attachment 20024</a> <a href="attachment.cgi?id=20024&action=edit" title="Minimal reproduce of issue (follow instructions in comment)">[details]</a></span>
Minimal reproduce of issue (follow instructions in comment)

I've included an attachment which reproduces the issue.

- Extract reproduce.zip and enter the root directory (with src and test
subfolders)
- "clang++.exe -I../test -working-directory=src main.cpp" succeeds
- "clang-cl.exe -I../test -working-directory=src main.cpp" fails with: 
clang-cl.exe: error: no such file or directory: 'main.cpp'
clang-cl.exe: error: no input files

clang-cl gives no warning that -working-directory is ignored. Ideally
-working-directory should either work for clang-cl.exe or a warning should be
given so that users know the option is being ignored by clang-cl.exe</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>