[llvm-branch-commits] [cfe-branch] r102097 - /cfe/branches/Apple/williamson-IB/Makefile
Daniel Dunbar
daniel at zuster.org
Thu Apr 22 10:43:53 PDT 2010
Author: ddunbar
Date: Thu Apr 22 12:43:53 2010
New Revision: 102097
URL: http://llvm.org/viewvc/llvm-project?rev=102097&view=rev
Log:
Add support for a Clang_Enable_CXX=1 build variable, to enable building clang++.
Modified:
cfe/branches/Apple/williamson-IB/Makefile
Modified: cfe/branches/Apple/williamson-IB/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/williamson-IB/Makefile?rev=102097&r1=102096&r2=102097&view=diff
==============================================================================
--- cfe/branches/Apple/williamson-IB/Makefile (original)
+++ cfe/branches/Apple/williamson-IB/Makefile Thu Apr 22 12:43:53 2010
@@ -13,6 +13,8 @@
Clang_Use_Assertions := 1
# Select clang driver mode, valid values are 'Production' and 'Development'.
Clang_Driver_Mode := Production
+# Enable use of clang++?
+Clang_Enable_CXX := 0
# Build all LLVM tools; not just clang?
Clang_Build_All := 0
@@ -39,7 +41,16 @@
# Set makefile variables to pass during build and install.
Clang_Make_Variables := KEEP_SYMBOLS=1 CLANG_VENDOR=Apple
ifeq ($(Clang_Driver_Mode), Production)
+
Clang_Make_Variables += CLANG_IS_PRODUCTION=1
+ifeq ($(Clang_Enable_CXX), 1)
+Clang_Make_Variables += CLANGXX_IS_PRODUCTION=1
+else ifeq ($(Clang_Enable_CXX), 0)
+# ... this is the default ...
+else
+$(error "invalid setting for clang enable C++: '$(Clang_Enable_CXX)'")
+endif
+
else ifeq ($(Clang_Driver_Mode), Development)
# ... this is the default ...
else
More information about the llvm-branch-commits
mailing list