[llvm-branch-commits] [cfe-branch] r109991 - /cfe/branches/Apple/williamson-IB/ClangBNI.mk
Daniel Dunbar
daniel at zuster.org
Sun Aug 1 15:49:06 PDT 2010
Author: ddunbar
Date: Sun Aug 1 17:49:06 2010
New Revision: 109991
URL: http://llvm.org/viewvc/llvm-project?rev=109991&view=rev
Log:
Sync with Whitney.
Modified:
cfe/branches/Apple/williamson-IB/ClangBNI.mk
Modified: cfe/branches/Apple/williamson-IB/ClangBNI.mk
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/williamson-IB/ClangBNI.mk?rev=109991&r1=109990&r2=109991&view=diff
==============================================================================
--- cfe/branches/Apple/williamson-IB/ClangBNI.mk (original)
+++ cfe/branches/Apple/williamson-IB/ClangBNI.mk Sun Aug 1 17:49:06 2010
@@ -26,9 +26,11 @@
# This makefile currently supports the following build targets:
#
-# install-clang - Build the Clang compiler.
-# install-cross - Build the Clang compiler, for ARM.
-# install-libclang - Build the libclang dylib.
+# install-clang - Build the Clang compiler.
+# install-cross - Build the Clang compiler, for ARM.
+# install-libclang - Build the libclang dylib.
+# install-clang-links - Install links from a platforms subdirectory to the
+# root clang.
#
# The default build target is 'install-clang'.
#
@@ -80,6 +82,11 @@
# Never bootstrap.
Clang_Enable_Bootstrap := 0
+else ifeq ($(MAKECMDGOALS),install-clang-links)
+
+# Dummy project which only installs compiler links from the INSTALL_LOCATION to
+# the primary SDK compiler.
+
else
# Default project (clang).
@@ -442,6 +449,13 @@
$(INSTALL_FILE) $(Sources)/LICENSE.TXT $(OSL)/clang-llvm.txt
$(INSTALL_FILE) $(Sources)/tools/clang/LICENSE.TXT $(OSL)/clang.txt
+install-clang-links:
+ $(MKDIR) -p $(DSTROOT)/$(Install_Prefix)/bin
+ ln -sf ../../../../../usr/bin/clang $(DSTROOT)/$(Install_Prefix)/bin/clang
+ifeq ($(Clang_Enable_CXX), 1)
+ ln -sf ../../../../../usr/bin/clang++ $(DSTROOT)/$(Install_Prefix)/bin/clang++
+fi
+
##
# Cross Compilation Build Support
More information about the llvm-branch-commits
mailing list