MCPcopy Create free account
hub / github.com/MeisApps/pcbu-desktop / HasNativeLibrary

Method HasNativeLibrary

common/src/platform/PlatformHelper.Linux.cpp:85–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85bool PlatformHelper::HasNativeLibrary(const std::string &libName) {
86 return std::filesystem::exists(std::filesystem::path("/lib64") / libName) || std::filesystem::exists(std::filesystem::path("/lib") / libName) ||
87 std::filesystem::exists(std::filesystem::path("/usr/lib/x86_64-linux-gnu") / libName) ||
88 std::filesystem::exists(std::filesystem::path("/usr/lib/aarch64-linux-gnu") / libName);
89}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected