From 43361440bd6b37e278fd0b8335fdc9e28a396069 Mon Sep 17 00:00:00 2001 From: Tim Northover Date: Tue, 4 Nov 2014 02:16:03 +0000 Subject: [PATCH] Docs: give binutils/gold instructions for CMake too. Patch by Steve King. llvm-svn: 221227 --- llvm/docs/GoldPlugin.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/llvm/docs/GoldPlugin.rst b/llvm/docs/GoldPlugin.rst index 28b202a..6328934 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 ===== -- 2.7.4