mirror of
https://src.fedoraproject.org/rpms/llvm.git
synced 2024-11-28 02:34:52 +00:00
Removing the use of auto in the devtoolset patch
This commit is contained in:
parent
4c38795a19
commit
70d0626d0a
1 changed files with 3 additions and 3 deletions
|
@ -9,10 +9,10 @@
|
|||
+ if (const char *software_collections = getenv("X_SCLS")) {
|
||||
+ SmallVector<StringRef, 4> Scls;
|
||||
+ StringRef(software_collections).split(Scls, StringRef(" "), -1, false);
|
||||
+ for (const auto &Scl : Scls) {
|
||||
+ if (!Scl.startswith(StringRef("devtoolset-")))
|
||||
+ for (SmallVector<StringRef, 4>::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);
|
||||
+ }
|
||||
+ }
|
||||
|
|
Loading…
Reference in a new issue