<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 - [modules] issues with "delete modules.cache" on edit-compile-debug cycles"
href="https://bugs.llvm.org/show_bug.cgi?id=32193">32193</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[modules] issues with "delete modules.cache" on edit-compile-debug cycles
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</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>Modules
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>gonzalobg88@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>When I am using modules in a edit-compile-debug-repeat cycle, I am usually
editing some header files that are part of a single module.
On recompilation, clang complains that the module changed.
I then need to rm -rf modules.cache completely, and retry compiling my code,
which is now slower since all the modules need to be recompiled.
Multiple issues with this:
- 1. I would expect clang to delete the cache itself and recompile, instead of
bailing out and doing nothing.
- 2. I would expect clang to delete only the modules that need to be
recompiled, not the whole cache.
- 3. If I am going to be doing this manually for a while, I would like a way to
have multiple caches, so that I can put e.g. the external dependencies of my
project, which never change, on a different cache that I then do not need to
delete.</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>