[lld] Support finding pdb files from outputpath (PR #94153)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 5 08:26:17 PDT 2024


================
@@ -843,15 +854,18 @@ static std::string normalizePdbPath(StringRef path) {
 }
 
 // If existing, return the actual PDB path on disk.
-static std::optional<std::string> findPdbPath(StringRef pdbPath,
-                                              ObjFile *dependentFile) {
+static std::optional<std::string>
+findPdbPath(StringRef pdbPath, ObjFile *dependentFile, StringRef outputFile) {
----------------
GkvJwa wrote:

Review again, I have debugged and modified:
```
+  sys::path::append(path, outputPath, pdbName);
->
+  sys::path::append(path, sys::path::parent_path(outputPath), pdbName);
```

https://github.com/llvm/llvm-project/pull/94153


More information about the llvm-commits mailing list