[libcxx-commits] [libcxx] [libcxx][docs] Note how to use just built libc++ with per-target runtimes layout (PR #172316)

via libcxx-commits libcxx-commits at lists.llvm.org
Mon Dec 15 07:29:30 PST 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libcxx

Author: David Spickett (DavidSpickett)

<details>
<summary>Changes</summary>

Fixes #<!-- -->172024

This is something a lot of people can probably figure out themselves but having this obvious wrong turn in the getting started document isn't a good first impression.

So I've added a note to highlight how to deal with it.

I don't want to go into detail there about the layout itself, but it should be enough that people know to check by listing the contents of the lib/ folder.

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


1 Files Affected:

- (modified) libcxx/docs/VendorDocumentation.rst (+5) 


``````````diff
diff --git a/libcxx/docs/VendorDocumentation.rst b/libcxx/docs/VendorDocumentation.rst
index 3e4b305707258..fc788178c96e4 100644
--- a/libcxx/docs/VendorDocumentation.rst
+++ b/libcxx/docs/VendorDocumentation.rst
@@ -68,6 +68,11 @@ to override it with custom paths. With Clang, this can be done with:
 The option ``-Wl,-rpath,<install>/lib`` adds a runtime library search path, which causes the system's
 dynamic linker to look for libc++ in ``<install>/lib`` whenever the program is loaded.
 
+.. note::
+  If the runtimes were built using the "per-target runtime directory" layout,
+  they will be in ``<install>/lib/<target-triple>`` instead of ``<install>/lib``.
+  In this case, use the former path for all library paths in the command above
+  (the path to include files does not change).
 
 The Bootstrapping build
 =======================

``````````

</details>


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


More information about the libcxx-commits mailing list