[zorg] r176989 - Take the dirname of the found libLTO path so libLTO.dylib is chopped off.

Michael Gottesman mgottesman at apple.com
Wed Mar 13 15:38:36 PDT 2013


Author: mgottesman
Date: Wed Mar 13 17:38:36 2013
New Revision: 176989

URL: http://llvm.org/viewvc/llvm-project?rev=176989&view=rev
Log:
Take the dirname of the found libLTO path so libLTO.dylib is chopped off.

Modified:
    zorg/trunk/zorg/buildbot/PhasedBuilderUtils.py

Modified: zorg/trunk/zorg/buildbot/PhasedBuilderUtils.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/PhasedBuilderUtils.py?rev=176989&r1=176988&r2=176989&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/PhasedBuilderUtils.py (original)
+++ zorg/trunk/zorg/buildbot/PhasedBuilderUtils.py Wed Mar 13 17:38:36 2013
@@ -153,7 +153,7 @@ def find_liblto(status, stdin, stdout):
     lines = filter(bool, stdin.split('\n'))
     for line in lines:
         if 'lib/libLTO.dylib' in line:
-            liblto_path = line
+            liblto_path = os.path.dirname(line)
             return { 'liblto_path' : liblto_path }
     return {}
 





More information about the llvm-commits mailing list