diff options
author | Devang Patel <dpatel@apple.com> | 2010-07-15 20:57:09 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-07-15 20:57:09 +0000 |
commit | 83be4519af7869d667d548d9debd35deb4ba4487 (patch) | |
tree | 0c386eb197ba6c4a9b9fcb95f93aa3bc012401ac | |
parent | 19f78283357a2e1587d648d81cf42f9b79f71c86 (diff) | |
download | external_llvm-83be4519af7869d667d548d9debd35deb4ba4487.zip external_llvm-83be4519af7869d667d548d9debd35deb4ba4487.tar.gz external_llvm-83be4519af7869d667d548d9debd35deb4ba4487.tar.bz2 |
Revert 108456. i.e. bring back r108444.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108458 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | Makefile.rules | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules index 12582f6..8aeb6af 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -1345,6 +1345,27 @@ ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux NetBSD FreeBSD)) endif endif +#--------------------------------------------------------- +# Tool Version Info Support +#--------------------------------------------------------- + +ifeq ($(HOST_OS),Darwin) +ifdef TOOL_INFO_PLIST + +LD.Flags += -Wl,-sectcreate,__TEXT,__info_plist,$(ObjDir)/$(TOOL_INFO_PLIST) + +$(ToolBuildPath): $(ObjDir)/$(TOOL_INFO_PLIST) + +$(ObjDir)/$(TOOL_INFO_PLIST): $(PROJ_SRC_DIR)/$(TOOL_INFO_PLIST).in + $(Echo) "Creating $(TOOLNAME) '$(TOOL_INFO_PLIST)' file..." + $(Verb)sed -e "s#@TOOL_INFO_UTI@#$(TOOL_INFO_UTI)#g" \ + -e "s#@TOOL_INFO_NAME@#$(TOOL_INFO_NAME)#g" \ + -e "s#@TOOL_INFO_VERSION@#$(TOOL_INFO_VERSION)#g" \ + -e "s#@TOOL_INFO_BUILD_VERSION@#$(TOOL_INFO_BUILD_VERSION)#g" \ + $< > $@ + +endif +endif #--------------------------------------------------------- # Provide targets for building the tools |