llvm-project
llvm-project copied to clipboard
[DependencyScanning] Allow sharing of explicit modules between a PCH and a TU that doesn't use PCH
This cherry-picks https://reviews.llvm.org/D148369 along with adding a commit to deal with NeededByPCHOrCompilationUsesPCH (that only exists in apple fork) so the upstream test can actually pass.
I had offline discussion with @jansvoboda11 and he had a suggestion for the build system to treat the prefix header as a module, which would avoid all these hacks that we have to deal with. I'm putting this PR on draft for now, time may be better spent to explore this kind of approach.