[PATCH] D131076: [clang][modules] Don't depend on sharing FileManager during module build
Ben Langmuir via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 5 09:56:28 PDT 2022
benlangmuir updated this revision to Diff 450313.
benlangmuir added a comment.
Herald added a subscriber: ormris.
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.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131076/new/
https://reviews.llvm.org/D131076
Files:
clang/include/clang/Driver/Options.td
clang/include/clang/Frontend/FrontendOptions.h
clang/lib/Basic/FileManager.cpp
clang/lib/Frontend/CompilerInstance.cpp
clang/test/ClangScanDeps/modulemap-via-vfs.m
clang/test/Modules/submodule-in-private-mmap-vfs.m
clang/test/VFS/module-import.m
clang/unittests/Basic/FileManagerTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131076.450313.patch
Type: text/x-patch
Size: 11884 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220805/3b976261/attachment-0001.bin>
More information about the cfe-commits
mailing list