Skip DLLs provided by Windows when checking for unresolvable DLLs

This commit is contained in:
Martchus 2022-03-03 22:40:48 +01:00
parent c2e7f40767
commit cbfdf2236e
1 changed files with 5 additions and 0 deletions

View File

@ -489,6 +489,11 @@ std::unordered_map<PackageSpec, UnresolvedDependencies> Database::detectUnresolv
continue;
}
// skip DLLs known to be provided by Windows (but can not be detected as provides of mingw-w64-crt)
if (requiredLib.name.find("api-ms-win") != std::string::npos && requiredLib.name.ends_with(".dll")) {
continue;
}
// add packages to list of unresolved packages
for (const auto &affectedPackageID : requiredLib.relevantPackages) {
const auto affectedPackage = findPackage(affectedPackageID);