[clang-tools-extra] [clang-doc] fix paths by hard coding path to share (PR #98099)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 8 16:36:10 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang-tools-extra

Author: None (PeterChou1)

<details>
<summary>Changes</summary>

Fixes https://github.com/llvm/llvm-project/issues/97507

The previous patch I put up broke clang's standalone build, this patch is a hack workaround so that the clang-docs tests can pass regression test without breaking visual studio build and other standalone clang builds


---
Full diff: https://github.com/llvm/llvm-project/pull/98099.diff


1 Files Affected:

- (modified) clang-tools-extra/clang-doc/tool/CMakeLists.txt (+1-1) 


``````````diff
diff --git a/clang-tools-extra/clang-doc/tool/CMakeLists.txt b/clang-tools-extra/clang-doc/tool/CMakeLists.txt
index e93a5728d6b6b..601a0460d76b3 100644
--- a/clang-tools-extra/clang-doc/tool/CMakeLists.txt
+++ b/clang-tools-extra/clang-doc/tool/CMakeLists.txt
@@ -25,7 +25,7 @@ set(assets
 )
 
 set(asset_dir "${CMAKE_CURRENT_SOURCE_DIR}/../assets")
-set(resource_dir "${CMAKE_BINARY_DIR}/share/clang-doc")
+set(resource_dir "${LLVM_RUNTIME_OUTPUT_INTDIR}/../share/clang-doc")
 set(out_files)
 
 function(copy_files_to_dst src_dir dst_dir file)

``````````

</details>


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


More information about the cfe-commits mailing list