summaryrefslogtreecommitdiffstats
path: root/lld/docs
diff options
context:
space:
mode:
Diffstat (limited to 'lld/docs')
-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