summaryrefslogtreecommitdiffstats
path: root/llvm/docs/GoldPlugin.rst
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-11-04 02:16:03 +0000
committerTim Northover <tnorthover@apple.com>2014-11-04 02:16:03 +0000
commit43361440bd6b37e278fd0b8335fdc9e28a396069 (patch)
tree8175421e0cdbdb5599d83fa9d91ebf22b513b5c7 /llvm/docs/GoldPlugin.rst
parentdd3f3edafadc92d603920c3b96bf331d0c3a9341 (diff)
downloadbcm5719-llvm-43361440bd6b37e278fd0b8335fdc9e28a396069.tar.gz
bcm5719-llvm-43361440bd6b37e278fd0b8335fdc9e28a396069.zip
Docs: give binutils/gold instructions for CMake too.
Patch by Steve King. llvm-svn: 221227
Diffstat (limited to 'llvm/docs/GoldPlugin.rst')
-rw-r--r--llvm/docs/GoldPlugin.rst8
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/docs/GoldPlugin.rst b/llvm/docs/GoldPlugin.rst
index 28b202adf08..6328934b37b 100644
--- a/llvm/docs/GoldPlugin.rst
+++ b/llvm/docs/GoldPlugin.rst
@@ -44,9 +44,11 @@ will either need to build gold or install a version with plugin support.
the ``-plugin`` option. Running ``make`` will additionally build
``build/binutils/ar`` and ``nm-new`` binaries supporting plugins.
-* Build the LLVMgold plugin: Configure LLVM with
- ``--with-binutils-include=/path/to/binutils/include`` and run
- ``make``.
+* Build the LLVMgold plugin. If building with autotools, run configure with
+ ``--with-binutils-include=/path/to/binutils/include`` and run ``make``.
+ If building with CMake, run cmake with
+ ``-DLLVM_BINUTILS_INCDIR=/path/to/binutils/include``. The correct include
+ path will contain the file ``plugin-api.h``.
Usage
=====
OpenPOWER on IntegriCloud