aboutsummaryrefslogtreecommitdiff
path: root/clang/www
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2024-03-18 13:11:44 -0700
committerGitHub <noreply@github.com>2024-03-18 13:11:44 -0700
commit9936ac308332796bf16024ce30a4aa1fba2cce66 (patch)
treee4764fd9bdb9091607f84c37fc0491a2e86d95e0 /clang/www
parentcf835b96b13bec3b5df1962bae609934edda6d55 (diff)
downloadllvm-9936ac308332796bf16024ce30a4aa1fba2cce66.zip
llvm-9936ac308332796bf16024ce30a4aa1fba2cce66.tar.gz
llvm-9936ac308332796bf16024ce30a4aa1fba2cce66.tar.bz2
[docs] Prefer --gcc-install-dir= to deprecated GCC_INSTALL_PREFIX (#85458)
Setting GCC_INSTALL_PREFIX leads to a warning (#77537). Link: https://discourse.llvm.org/t/add-gcc-install-dir-deprecate-gcc-toolchain-and-remove-gcc-install-prefix/65091 Link: https://discourse.llvm.org/t/correct-cmake-parameters-for-building-clang-and-lld-for-riscv/72833
Diffstat (limited to 'clang/www')
-rwxr-xr-xclang/www/get_started.html17
1 files changed, 10 insertions, 7 deletions
diff --git a/clang/www/get_started.html b/clang/www/get_started.html
index dda914a..8e4d366 100755
--- a/clang/www/get_started.html
+++ b/clang/www/get_started.html
@@ -86,13 +86,16 @@ follows:</p>
</ul>
</li>
- <li>If you intend to use Clang's C++ support, you may need to tell it how
- to find your C++ standard library headers. In general, Clang will detect
- the best version of libstdc++ headers available and use them - it will
- look both for system installations of libstdc++ as well as installations
- adjacent to Clang itself. If your configuration fits neither of these
- scenarios, you can use the <tt>-DGCC_INSTALL_PREFIX</tt> cmake option
- to tell Clang where the gcc containing the desired libstdc++ is installed.
+ <li>On Linux, you may need GCC runtime libraries (e.g. <tt>crtbeginS.o,
+ libstdc++.so</tt>) and libstdc++ headers. In general, Clang will detect
+ well-known GCC installation paths matching the target triple (configured at
+ build time (see <tt>clang --version</tt>); overriden by
+ <tt>--target=</tt>) and use the largest version. If your configuration fits
+ none of the standard scenarios, you can set <tt>--gcc-install-dir=</tt> to
+ the GCC installation directory (something like
+ <tt>/usr/lib/gcc/$triple/$major</tt>). If your GCC installation is under
+ <tt>/usr/lib/gcc</tt> but uses a different triple, you can set
+ <tt>--gcc-triple=$triple</tt>.
</li>
<li>Try it out (assuming you add llvm/build/bin to your path):
<ul>