nested parallel_for_lops (this will almost certainly fail)
This commit is contained in:
parent
7773790eb0
commit
a8f7f48b70
|
@ -317,7 +317,10 @@ void doneWithDeps_go()
|
||||||
createDestDir();
|
createDestDir();
|
||||||
parallel_for_each(deps.begin(), deps.end(), [](Dependency& dep) {
|
parallel_for_each(deps.begin(), deps.end(), [](Dependency& dep) {
|
||||||
dep.copyYourself();
|
dep.copyYourself();
|
||||||
changeLibPathsOnFile(dep.getInstallPath());
|
std::cout << "\n* Fixing dependencies on " << dep.getInstallPath().c_str() << std::endl;
|
||||||
|
parallel_for_each(deps.begin(), deps.end(), [&](Dependency& dep) {
|
||||||
|
dep.fixFileThatDependsOnMe(dep.getInstallPath());
|
||||||
|
});
|
||||||
fixRpathsOnFile(dep.getOriginalPath(), dep.getInstallPath());
|
fixRpathsOnFile(dep.getOriginalPath(), dep.getInstallPath());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -326,7 +329,11 @@ void doneWithDeps_go()
|
||||||
const int fileToFixAmount = Settings::fileToFixAmount();
|
const int fileToFixAmount = Settings::fileToFixAmount();
|
||||||
|
|
||||||
parallel_for_each(files.begin(), files.end(), [](const std::string& file) {
|
parallel_for_each(files.begin(), files.end(), [](const std::string& file) {
|
||||||
changeLibPathsOnFile(file);
|
std::cout << "\n* Fixing dependencies on " << file.c_str() << std::endl;
|
||||||
|
const int dep_amount = deps.size();
|
||||||
|
parallel_for_each(deps.begin(), deps.end(), [&](Dependency& dep) {
|
||||||
|
dep.fixFileThatDependsOnMe(file);
|
||||||
|
});
|
||||||
fixRpathsOnFile(file, file);
|
fixRpathsOnFile(file, file);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue