summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-25 22:08:52 +0000
committerChris Lattner <sabre@nondot.org>2009-04-25 22:08:52 +0000
commit0cb8977c0aad998860cccf1da7a9d80c22d2a78f (patch)
treebb6271a557c7866b0a54d91cb623588653312617 /llvm
parentc71d08bc22ae12755afb4d65bc33852e4dba7355 (diff)
downloadbcm5719-llvm-0cb8977c0aad998860cccf1da7a9d80c22d2a78f.tar.gz
bcm5719-llvm-0cb8977c0aad998860cccf1da7a9d80c22d2a78f.zip
aDd support for building a subset of the llvm tools, patch by Jeffrey Yasskin!
llvm-svn: 70082
Diffstat (limited to 'llvm')
-rw-r--r--llvm/docs/GettingStarted.html6
-rw-r--r--llvm/docs/MakefileGuide.html2
-rw-r--r--llvm/tools/Makefile6
3 files changed, 11 insertions, 3 deletions
diff --git a/llvm/docs/GettingStarted.html b/llvm/docs/GettingStarted.html
index 6a54c02ae12..e4d0438e444 100644
--- a/llvm/docs/GettingStarted.html
+++ b/llvm/docs/GettingStarted.html
@@ -327,9 +327,9 @@ up</a></li>
<p>Note that you will need about 1-3 GB of space for a full LLVM build in Debug
mode, depending on the system (it is so large because of all the debugging
information and the fact that the libraries are statically linked into multiple
-tools). If you do not need many of the tools and you are space-conscious,
-you can disable them individually in <tt>llvm/tools/Makefile</tt>. The Release
-build requires considerably less space.</p>
+tools). If you do not need many of the tools and you are space-conscious, you
+can pass <tt>ONLY_TOOLS="tools you need"</tt> to make. The Release build
+requires considerably less space.</p>
<p>The LLVM suite <i>may</i> compile on other platforms, but it is not
guaranteed to do so. If compilation is successful, the LLVM utilities should be
diff --git a/llvm/docs/MakefileGuide.html b/llvm/docs/MakefileGuide.html
index 5f561f3a978..5e918bf0fd4 100644
--- a/llvm/docs/MakefileGuide.html
+++ b/llvm/docs/MakefileGuide.html
@@ -841,6 +841,8 @@
<dt><a name="MKDIR"><tt>MKDIR</tt></a><small>(defaulted)</small></dt>
<dd>Specifies the path to the <tt>mkdir</tt> tool that creates
directories.</dd>
+ <dt><a name="ONLY_TOOLS"><tt>ONLY_TOOLS</tt></a></dt>
+ <dd>If set, specifies the list of tools to build.</dd>
<dt><a name="PLATFORMSTRIPOPTS"><tt>PLATFORMSTRIPOPTS</tt></a></dt>
<dd>The options to provide to the linker to specify that a stripped (no
symbols) executable should be built.</dd>
diff --git a/llvm/tools/Makefile b/llvm/tools/Makefile
index 756d7d58c3c..b3c015f307c 100644
--- a/llvm/tools/Makefile
+++ b/llvm/tools/Makefile
@@ -22,6 +22,12 @@ PARALLEL_DIRS := opt llvm-as llvm-dis \
lli gccas gccld llvm-extract llvm-db \
bugpoint llvm-bcanalyzer llvm-stub llvmc
+# Let users override the set of tools to build from the command line.
+ifdef ONLY_TOOLS
+ OPTIONAL_PARALLEL_DIRS :=
+ PARALLEL_DIRS := $(ONLY_TOOLS)
+endif
+
include $(LEVEL)/Makefile.config
ifeq ($(ENABLE_PIC),1)
OpenPOWER on IntegriCloud