[llvm-branch-commits] [cfe-branch] r100242 - /cfe/branches/Apple/whitney-IB/Makefile

Daniel Dunbar daniel at zuster.org
Fri Apr 2 15:40:21 PDT 2010


Author: ddunbar
Date: Fri Apr  2 17:40:21 2010
New Revision: 100242

URL: http://llvm.org/viewvc/llvm-project?rev=100242&view=rev
Log:
Add a build variable to allow us to build all LLVM tools as part of an Apple
style build; this is useful if we want to run the tests on the resulting
product, for example.

Modified:
    cfe/branches/Apple/whitney-IB/Makefile

Modified: cfe/branches/Apple/whitney-IB/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/whitney-IB/Makefile?rev=100242&r1=100241&r2=100242&view=diff
==============================================================================
--- cfe/branches/Apple/whitney-IB/Makefile (original)
+++ cfe/branches/Apple/whitney-IB/Makefile Fri Apr  2 17:40:21 2010
@@ -15,6 +15,8 @@
 Clang_Optimize_Option  := -O2
 # Additional arbitrary compiler options.
 Clang_Extra_Options    := -g -DDISABLE_SMART_POINTERS
+# Build all LLVM tools; not just clang?
+Clang_Build_All        := 1
 
 ##
 
@@ -27,6 +29,15 @@
 $(error "invalid setting for clang assertions: '$(Clang_Use_Assertions)'")
 endif
 
+# Select whether to build everything (for testing purposes).
+ifeq ($(Clang_Build_All), 1)
+Clang_Build_Target := all
+else ifeq ($(Clang_Build_All), 0)
+Clang_Build_Target := clang-only
+else
+$(error "invalid setting for clang build all mode: '$(Clang_Build_All)'")
+endif
+
 # Set makefile variables to pass during build and install.
 Clang_Make_Variables := KEEP_SYMBOLS=1 CLANG_VENDOR=Apple
 ifeq ($(Clang_Driver_Mode), Production)
@@ -81,7 +92,7 @@
 endif
 
 Install_Target = $(Clang_Make_Variables) install-clang
-Build_Target = $(Clang_Make_Variables) clang-only
+Build_Target = $(Clang_Make_Variables) $(Clang_Build_Target)
 
 # Set default target.
 





More information about the llvm-branch-commits mailing list