forked from OSchip/llvm-project
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 llvm-svn: 180240
This commit is contained in:
parent
c7699631df
commit
5afbec8b0c
|
@ -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) $(ProjLibsPaths) $(LLVMLibsPaths)
|
|||
$(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)
|
||||
|
|
Loading…
Reference in New Issue