Index: docs/README.rst |
diff --git a/docs/README.rst b/docs/README.rst |
index 0257558a17fd0de0c4b8b3361ee92c51c5c33f58..922d99d2c6fd9de5a331c50fca027b63ca9eae1b 100644 |
--- a/docs/README.rst |
+++ b/docs/README.rst |
@@ -44,6 +44,27 @@ minimize the size of the translator by compiling out everything unnecessary. |
The result of the ``make`` command is the target ``pnacl-sz`` in the current |
directory. |
+Building within LLVM trunk |
+-------------------------- |
+ |
+Subzero can also be built from within a standard LLVM trunk checkout. Here is |
+an example of how it can be checked out and built:: |
+ |
+ mkdir llvm-git |
+ cd llvm-git |
+ git clone http://llvm.org/git/llvm.git |
+ cd llvm/projects/ |
+ git clone https://chromium.googlesource.com/native_client/pnacl-subzero |
+ cd ../.. |
+ mkdir build |
+ cd build |
+ cmake -G Ninja ../llvm/ |
+ ninja |
+ ./bin/pnacl-sz -version |
+ |
+This creates a default build of ``pnacl-sz``; currently any options such as |
+``DEBUG=1`` or ``MINIMAL=1`` have to be added manually. |
+ |
``pnacl-sz`` |
------------ |