Lines Matching defs:Lib
372 /// extension. Returns true if Lib is in a recognized format.
373 auto GetComponentLibraryNameSlice = [&](const StringRef &Lib,
375 if (Lib.startswith("lib")) {
377 if (Lib.endswith(StaticExt)) {
379 } else if (Lib.endswith(SharedExt)) {
386 Out = Lib.slice(3, Lib.size() - FromEnd);
394 auto GetComponentLibraryFileName = [&](const StringRef &Lib,
396 std::string LibFileName = Lib;
398 if (GetComponentLibraryNameSlice(Lib, LibName)) {
544 for (auto &Lib : RequiredLibs) {
545 if (!FullDyLibComponents.count(Lib)) {
563 auto PrintForLib = [&](const StringRef &Lib, const bool ForceShared) {
565 OS << GetComponentLibraryFileName(Lib, ForceShared);
567 OS << GetComponentLibraryPath(Lib, ForceShared);
571 if (Lib.startswith("lib")) {
572 if (GetComponentLibraryNameSlice(Lib, LibName)) {
575 OS << "-l:" << GetComponentLibraryFileName(Lib, ForceShared);
579 OS << GetComponentLibraryPath(Lib, ForceShared);
588 auto Lib = RequiredLibs[i];
592 PrintForLib(Lib, false);