From cc3123174c73b157f22f87720541180246e60257 Mon Sep 17 00:00:00 2001
From: Chandler Carruth
Date: Wed, 16 May 2012 08:18:58 +0000
Subject: [PATCH] Clarify how libstdc++ and other bits of the system toolchain
are found on Linux in the getting started documentation.
Patch by Nathan Ridge.
llvm-svn: 156911
---
clang/www/get_started.html | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/clang/www/get_started.html b/clang/www/get_started.html
index d819532f0dbd..9e49bf188068 100644
--- a/clang/www/get_started.html
+++ b/clang/www/get_started.html
@@ -83,15 +83,12 @@ follows:
If you intend to work on Clang C++ support, you may need to tell it how
- to find your C++ standard library headers. If Clang cannot find your
- system libstdc++ headers, please follow these instructions:
-
- - 'gcc -v -x c++ /dev/null -fsyntax-only' to get the
- path.
- - Look for the comment "FIXME: temporary hack:
- hard-coded paths" in clang/lib/Frontend/InitHeaderSearch.cpp and
- change the lines below to include that path.
-
+ 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 --with-gcc-toolchain configure option
+ to tell Clang where the gcc containing the desired libstdc++ is installed.
Try it out (assuming you add llvm/Debug+Asserts/bin to your path):