cmCxxModuleMapper: Specify clang's BMI dependency with new form

This commit is contained in:
Chuanqi Xu
2023-02-17 11:21:44 +08:00
committed by Brad King
parent f301108f56
commit 195ee13710

View File

@@ -53,7 +53,7 @@ std::string CxxModuleMapContentClang(CxxModuleLocations const& loc,
}
for (auto const& r : obj.Requires) {
if (auto bmi_loc = loc.BmiGeneratorPathForModule(r.LogicalName)) {
mm << "-fmodule-file=" << *bmi_loc << '\n';
mm << "-fmodule-file=" << r.LogicalName << "=" << *bmi_loc << '\n';
}
}