[cfe-commits] r67600 - /cfe/tags/Apple/clang/GNUSource.make
Mike Stump
mrs at apple.com
Mon Mar 23 18:59:49 PDT 2009
Author: mrs
Date: Mon Mar 23 20:59:49 2009
New Revision: 67600
URL: http://llvm.org/viewvc/llvm-project?rev=67600&view=rev
Log:
Generate dSYM files.
Modified:
cfe/tags/Apple/clang/GNUSource.make
Modified: cfe/tags/Apple/clang/GNUSource.make
URL: http://llvm.org/viewvc/llvm-project/cfe/tags/Apple/clang/GNUSource.make?rev=67600&r1=67599&r2=67600&view=diff
==============================================================================
--- cfe/tags/Apple/clang/GNUSource.make (original)
+++ cfe/tags/Apple/clang/GNUSource.make Mon Mar 23 20:59:49 2009
@@ -88,7 +88,7 @@
Configure = $(Sources)/configure
endif
-Environment = CC="$(CC) -arch $$arch" CXX="$(CXX) -arch $$arch"
+Environment = CC="$(CC) -arch $$arch" CXX="$(CXX) -arch $$arch" KEEP_SYMBOLS=1 -s --no-print-directory
CC_Archs = # set by CC
# FIXME: Common.make shouldn't be setting this in the first place.
@@ -116,6 +116,8 @@
.PHONY: configure almostclean
+SYSCTL := $(shell sysctl -n hw.activecpu)
+
install:: build
ifneq ($(GnuNoInstall),YES)
$(_v) for arch in $(RC_ARCHS) ; do \
@@ -128,6 +130,10 @@
./merge-lipo `for arch in $(RC_ARCHS) ; do echo $(BuildDirectory)/install-$$arch ; done` $(DSTROOT)
$(_v) $(FIND) $(DSTROOT) $(Find_Cruft) | $(XARGS) $(RMDIR)
$(_v) $(FIND) $(SYMROOT) $(Find_Cruft) | $(XARGS) $(RMDIR)
+ $(_v) $(FIND) $(DSTROOT) -perm -0111 ! -name ccc -type f -print | $(XARGS) -n 1 -P $(SYSCTL) dsymutil
+ $(_v) cd $(DSTROOT) && find . -path \*.dSYM/\* -print | cpio -pdml $(SYMROOT)
+ $(_v) find $(DSTROOT) -perm -0111 ! -name ccc -type f -print | xargs -P $(SYSCTL) strip
+ $(_v) find $(DSTROOT) -name \*.dSYM -print | xargs rm -r
ifneq ($(GnuNoChown),YES)
$(_v)- $(CHOWN) -R $(Install_User):$(Install_Group) $(DSTROOT) $(SYMROOT)
endif
@@ -141,8 +147,6 @@
"$(DSTROOT)$(SYSTEM_DEVELOPER_TOOLS_DOC_DIR)/$(ProjectName)"; \
fi
-SYSCTL=`sysctl -n hw.activecpu`
-
build:: configure
ifneq ($(GnuNoBuild),YES)
$(_v) for arch in $(RC_ARCHS) ; do \
More information about the cfe-commits
mailing list