[llvm] r180240 - Allow users to choose identity used to sign tools.
Filipe Cabecinhas
me at filcab.net
Wed Apr 24 18:17:54 PDT 2013
Author: filcab
Date: Wed Apr 24 20:17:54 2013
New Revision: 180240
URL: http://llvm.org/viewvc/llvm-project?rev=180240&view=rev
Log:
Allow users to choose identity used to sign tools.
Summary:
No change if the identity isn't defined by the makefile.
Reviewers: echristo
Differential Revision: http://llvm-reviews.chandlerc.com/D632
Modified:
llvm/trunk/Makefile.rules
Modified: llvm/trunk/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.rules?rev=180240&r1=180239&r2=180240&view=diff
==============================================================================
--- llvm/trunk/Makefile.rules (original)
+++ llvm/trunk/Makefile.rules Wed Apr 24 20:17:54 2013
@@ -1515,6 +1515,8 @@ $(ToolBuildPath): $(ToolDir)/.dir
endif
ifdef CODESIGN_TOOLS
+TOOL_CODESIGN_IDENTITY ?= -
+
$(ToolBuildPath): $(ObjectsO) $(ProjLibsPaths) $(LLVMLibsPaths)
$(Echo) Linking $(BuildMode) executable $(TOOLNAME) $(StripWarnMsg)
$(Verb) $(Link) -o $@ $(TOOLLINKOPTS) $(ObjectsO) $(ProjLibsOptions) \
@@ -1522,7 +1524,7 @@ $(ToolBuildPath): $(ObjectsO) $(ProjLibs
$(Echo) ======= Finished Linking $(BuildMode) Executable $(TOOLNAME) \
$(StripWarnMsg)
$(Echo) ======= Code-Signing $(BuildMode) Executable $(TOOLNAME)
- $(Verb) codesign -s - $@
+ $(Verb) codesign -s $(TOOL_CODESIGN_IDENTITY) $@
else
$(ToolBuildPath): $(ObjectsO) $(ProjLibsPaths) $(LLVMLibsPaths)
$(Echo) Linking $(BuildMode) executable $(TOOLNAME) $(StripWarnMsg)
More information about the llvm-commits
mailing list