llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[DependencyScanning] Allow sharing of explicit modules between a PCH and a TU that doesn't use PCH

Open akyrtzi opened this issue 3 years ago • 1 comments

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.

akyrtzi avatar Apr 20 '23 22:04 akyrtzi

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.

akyrtzi avatar Apr 21 '23 00:04 akyrtzi