[clang-tools-extra] Fix Default Asset File locator for clang docs (PR #97505)

Chris B via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 3 12:04:26 PDT 2024


================
@@ -167,7 +167,14 @@ llvm::Error getDefaultAssetFiles(const char *Argv0,
 
   llvm::SmallString<128> AssetsPath;
   AssetsPath = llvm::sys::path::parent_path(NativeClangDocPath);
-  llvm::sys::path::append(AssetsPath, "..", "share", "clang-doc");
+  llvm::sys::path::append(AssetsPath, "..");
+  llvm::SmallString<128> tempCopyDbg;
+  llvm::sys::path::native(AssetsPath, tempCopyDbg);
+  llvm::sys::path::append(tempCopyDbg, "Debug");
----------------
llvm-beanz wrote:

Could this also be "Release"?

It seems like this should probably be built like the compiler resource directory is where the assets get installed into a known binary relative path.

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


More information about the cfe-commits mailing list