Browse Source

cmCxxModuleMapper: Specify clang's BMI dependency with new form

Chuanqi Xu 2 years ago
parent
commit
195ee13710
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmCxxModuleMapper.cxx

+ 1 - 1
Source/cmCxxModuleMapper.cxx

@@ -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';
     }
   }