search for: maxmaj

Displaying 2 results from an estimated 2 matches for "maxmaj".

Did you mean: maxmam
2016 Dec 19
2
[lld] RFC: Finding shared libraries on OpenBSD
...t;SearchPaths) { - if (!Config->Static) + if (!Config->Static) { if (Optional<std::string> S = findFile(Dir, "lib" + Name + ".so")) return S; + + const StringRef LibName = (Twine("lib") + Name + ".so.").str(); + int MaxMaj = -1, MaxMin = -1; + std::error_code EC; + for (fs::directory_iterator LI(Dir, EC), LE; + !EC && LI != LE; LI = LI.increment(EC)) { + StringRef FilePath = LI->path(); + StringRef FileName = path::filename(FilePath); + if (!(FileName.startswith(LibName))) + continue;...
2016 Dec 20
0
[lld] RFC: Finding shared libraries on OpenBSD
...fig->Static) > + if (!Config->Static) { > if (Optional<std::string> S = findFile(Dir, "lib" + Name + ".so")) > return S; > + > + const StringRef LibName = (Twine("lib") + Name + ".so.").str(); > + int MaxMaj = -1, MaxMin = -1; > + std::error_code EC; > + for (fs::directory_iterator LI(Dir, EC), LE; > + !EC && LI != LE; LI = LI.increment(EC)) { > + StringRef FilePath = LI->path(); > + StringRef FileName = path::filename(FilePath); > + if...