[llvm] [BOLT] Enable standalone build (PR #97130)
Tristan Ross via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 24 20:48:31 PDT 2024
================
@@ -38,13 +38,37 @@ std::string RuntimeLibrary::getLibPath(StringRef ToolPath,
llvm::sys::path::append(LibPath, "lib" LLVM_LIBDIR_SUFFIX);
}
llvm::sys::path::append(LibPath, LibFileName);
- if (!llvm::sys::fs::exists(LibPath)) {
- errs() << "BOLT-ERROR: library not found: " << LibPath << "\n";
- exit(1);
- }
return std::string(LibPath);
}
+std::string RuntimeLibrary::getLibPathByInstalled(StringRef LibFileName) {
+ SmallString<128> LibPath =
+ llvm::sys::path::root_path(CMAKE_INSTALL_FULL_LIBDIR);
----------------
RossComputerGuy wrote:
I fixed it to use `CMAKE_INSTALL_FULL_LIBDIR` without `root_path`.
https://github.com/llvm/llvm-project/pull/97130
More information about the llvm-commits
mailing list