When a translation unit uses a PCH and imports the same modules as the PCH, we'd prefer to resolve to those modules instead of inventing new modules and reporting them as modular dependencies. Since the PCH modules have already been built nudge the compiler to reuse them when deciding whether to build a new module and don't report them as regular modular dependencies. Depends on D103524 & D103802. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D103526
20 lines
245 B
Plaintext
20 lines
245 B
Plaintext
module ModCommon1 {
|
|
header "mod_common_1.h"
|
|
}
|
|
|
|
module ModCommon2 {
|
|
header "mod_common_2.h"
|
|
}
|
|
|
|
module ModPCH {
|
|
header "mod_pch.h"
|
|
}
|
|
|
|
module ModTU {
|
|
header "mod_tu.h"
|
|
}
|
|
|
|
module ModTUWithCommon {
|
|
header "mod_tu_with_common.h"
|
|
}
|