From: Tim Northover Date: Tue, 4 Nov 2014 02:16:03 +0000 (+0000) Subject: Docs: give binutils/gold instructions for CMake too. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0a1d0f444b560553379dd68f51f387122dff9463;p=oota-llvm.git Docs: give binutils/gold instructions for CMake too. Patch by Steve King. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221227 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/GoldPlugin.rst b/docs/GoldPlugin.rst index 28b202adf08..6328934b37b 100644 --- a/docs/GoldPlugin.rst +++ b/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 =====