Sharing the FileManager between the importer and the module build should only be an optimization. Add a cc1 option -fno-modules-share-filemanager to allow us to test this. Fix the path to modulemap files, which previously depended on the shared FileManager when using path mapped to an external file in a VFS.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
- Updates for review feedback
- Attempt to fix one of the Windows path issues - I'm just guessing based on what other VFS tests are doing. I don't know what the other windows failure is about, and probably need to debug it.
Comment Actions
Attempt to fix test failure seen on Windows. It revealed two bugs
- Avoid reusing the FileManager at the top-level in clang-scan-deps to make the test behave as expected
- Make the FileManager return the cached redirecting entry, to match how it behaves when it's a new file, and test this case explicitly.
I think it was mostly luck of exactly which file lookups happen that we didn't hit this on other platforms.
Nitpick: ' vs " in the rest of the file, doesn't really matter though.