summaryrefslogtreecommitdiffstats
path: root/lld/docs/getting_started.rst
diff options
context:
space:
mode:
authorNick Kledzik <kledzik@apple.com>2012-04-26 23:41:01 +0000
committerNick Kledzik <kledzik@apple.com>2012-04-26 23:41:01 +0000
commitf78481710772d325cd8778a4e09e96c353228e0c (patch)
tree91b64c85dbfc49c4fd39e1e232c8475a9b8414a3 /lld/docs/getting_started.rst
parent031643ef487dbe55508c5ad7a600f2385bac9288 (diff)
downloadbcm5719-llvm-f78481710772d325cd8778a4e09e96c353228e0c.tar.gz
bcm5719-llvm-f78481710772d325cd8778a4e09e96c353228e0c.zip
show how to specify alternate path to clang compiler
llvm-svn: 155678
Diffstat (limited to 'lld/docs/getting_started.rst')
-rw-r--r--lld/docs/getting_started.rst16
1 files changed, 11 insertions, 5 deletions
diff --git a/lld/docs/getting_started.rst b/lld/docs/getting_started.rst
index d20b25700d6..75cfd1905a1 100644
--- a/lld/docs/getting_started.rst
+++ b/lld/docs/getting_started.rst
@@ -14,7 +14,7 @@ Building lld
On Unix-like Systems
~~~~~~~~~~~~~~~~~~~~
-#. Get the required tools.
+1. Get the required tools.
* `CMake 2.8`_\+.
* make (or any build system CMake supports).
@@ -28,12 +28,12 @@ On Unix-like Systems
.. _libc++: http://libcxx.llvm.org/
.. _Python 2.4: http://python.org/download/
-#. Check out LLVM::
+2. Check out LLVM::
$ cd path/to/llvm-project
$ svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
-#. Check out lld::
+3. Check out lld::
$ cd llvm/tools
$ svn co http://llvm.org/svn/llvm-project/lld/trunk lld
@@ -41,13 +41,19 @@ On Unix-like Systems
* lld can also be checked out to ``path/to/llvm-project`` and built as an external
project.
-#. Build LLVM and lld::
+4. Build LLVM and lld::
$ cd path/to/llvm-build/llvm (out of source build required)
$ cmake -G "Unix Makefiles" path/to/llvm-project/llvm
$ make
-#. Test::
+ * If you want to build with clang and it is not the default compiler or
+ it is installed in an alternate location, you'll need to tell the cmake tool
+ the location of the C and C++ compiler via CMAKE_C_COMPILER and
+ CMAKE_CXX_COMPILER. For example::
+ $ cmake -DCMAKE_CXX_COMPILER=/path/to/clang++ -DCMAKE_C_COMPILER=/path/to/clang ...
+
+5. Test::
$ make lld-test
OpenPOWER on IntegriCloud