Author: kuba.brecka
Date: Mon Jun 16 17:55:16 2014
New Revision: 211074

URL: http://llvm.org/viewvc/llvm-project?rev=211074&view=rev
Log:
Don't hardcode path to codesign_allocate.

Building OS X debugserver assumes you have an Xcode installation at 
/Application/Xcode.app. Let's instead detect where Xcode is using xcrun.

See http://reviews.llvm.org/D4152




Modified:
    lldb/trunk/tools/debugserver/source/MacOSX/CMakeLists.txt

Modified: lldb/trunk/tools/debugserver/source/MacOSX/CMakeLists.txt
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/MacOSX/CMakeLists.txt?rev=211074&r1=211073&r2=211074&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/MacOSX/CMakeLists.txt (original)
+++ lldb/trunk/tools/debugserver/source/MacOSX/CMakeLists.txt Mon Jun 16 
17:55:16 2014
@@ -53,7 +53,11 @@ target_link_libraries(debugserver ${DEBU
 
 # Sign the debugserver binary
 set (CODESIGN_IDENTITY lldb_codesign)
-set (CODESIGN_ALLOCATE 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate)
+execute_process(
+  COMMAND xcrun -f codesign_allocate
+  OUTPUT_STRIP_TRAILING_WHITESPACE
+  OUTPUT_VARIABLE CODESIGN_ALLOCATE
+  )
 add_custom_command(TARGET debugserver
   POST_BUILD
   COMMAND CODESIGN_ALLOCATE=${CODESIGN_ALLOCATE} codesign --entitlements 
${CMAKE_CURRENT_SOURCE_DIR}/../debugserver-entitlements.plist --force --sign 
${CODESIGN_IDENTITY} debugserver


_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

Reply via email to