diff --git a/0004-devtoolset.patch b/0004-devtoolset.patch index c22eccf..8c24c61 100644 --- a/0004-devtoolset.patch +++ b/0004-devtoolset.patch @@ -9,10 +9,10 @@ + if (const char *software_collections = getenv("X_SCLS")) { + SmallVector Scls; + StringRef(software_collections).split(Scls, StringRef(" "), -1, false); -+ for (const auto &Scl : Scls) { -+ if (!Scl.startswith(StringRef("devtoolset-"))) ++ for (SmallVector::const_iterator SclsIter = Scls.begin(); SclsIter != Scls.end(); ++SclsIter) { ++ if (!SclsIter->startswith(StringRef("devtoolset-"))) + continue; -+ const std::string SclPath = std::string("/opt/rh/") + Scl.str() + std::string("/root/usr"); ++ const std::string SclPath = std::string("/opt/rh/") + SclsIter->str() + std::string("/root/usr"); + Prefixes.push_back(SclPath); + } + }