[124922] trunk/dports/lang

jeremyhu at macports.org jeremyhu at macports.org
Sun Aug 31 08:52:36 PDT 2014


Revision: 124922
          https://trac.macports.org/changeset/124922
Author:   jeremyhu at macports.org
Date:     2014-08-31 08:52:36 -0700 (Sun, 31 Aug 2014)
Log Message:
-----------
llvm-3.{5,6}: Use our cctools if Xcode is too old.

Hopefully this will fix the build on the SL buildbot.

Modified Paths:
--------------
    trunk/dports/lang/llvm-3.5/Portfile
    trunk/dports/lang/llvm-3.6/Portfile

Modified: trunk/dports/lang/llvm-3.5/Portfile
===================================================================
--- trunk/dports/lang/llvm-3.5/Portfile	2014-08-31 13:50:52 UTC (rev 124921)
+++ trunk/dports/lang/llvm-3.5/Portfile	2014-08-31 15:52:36 UTC (rev 124922)
@@ -28,6 +28,12 @@
 
     depends_lib         port:libffi
     depends_run         bin:perl:perl5 port:llvm_select
+
+    # 3.2.6's install_name_tool doesn't support load commands we might see with newer clang+ld64
+    # 4.3 is just a guess here and should be updated if there are additional reports with other Xcode versions
+    if {[vercmp $xcodeversion 4.3] < 0 && [string match "*macports*" ${configure.compiler}]} {
+        depends_build-append port:cctools
+    }
 } elseif {${subport} == "clang-${llvm_version}"} {
     homepage            http://clang.llvm.org/
     description         C, C++, Objective C and Objective C++ compiler

Modified: trunk/dports/lang/llvm-3.6/Portfile
===================================================================
--- trunk/dports/lang/llvm-3.6/Portfile	2014-08-31 13:50:52 UTC (rev 124921)
+++ trunk/dports/lang/llvm-3.6/Portfile	2014-08-31 15:52:36 UTC (rev 124922)
@@ -28,6 +28,12 @@
 
     depends_lib         port:libffi
     depends_run         bin:perl:perl5 port:llvm_select
+
+    # 3.2.6's install_name_tool doesn't support load commands we might see with newer clang+ld64
+    # 4.3 is just a guess here and should be updated if there are additional reports with other Xcode versions
+    if {[vercmp $xcodeversion 4.3] < 0 && [string match "*macports*" ${configure.compiler}]} {
+        depends_build-append port:cctools
+    }
 } elseif {${subport} == "clang-${llvm_version}"} {
     homepage            http://clang.llvm.org/
     description         C, C++, Objective C and Objective C++ compiler
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140831/ddeb440d/attachment.html>


More information about the macports-changes mailing list