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

            Bug ID: 32193
           Summary: [modules] issues with "delete modules.cache" on
                    edit-compile-debug cycles
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Modules
          Assignee: unassignedclangb...@nondot.org
          Reporter: gonzalob...@gmail.com
                CC: dgre...@apple.com, llvm-bugs@lists.llvm.org

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.

-- 
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