[152166] trunk/dports/devel/ld64/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Tue Aug 30 19:59:38 PDT 2016


Revision: 152166
          https://trac.macports.org/changeset/152166
Author:   jeremyhu at macports.org
Date:     2016-08-30 19:59:38 -0700 (Tue, 30 Aug 2016)
Log Message:
-----------
ld64: Adjust default variant logic such that Leopard and SL users can just add -llvm33 and -llvm34 to variants.conf after bootstrapping to keep current

Modified Paths:
--------------
    trunk/dports/devel/ld64/Portfile

Modified: trunk/dports/devel/ld64/Portfile
===================================================================
--- trunk/dports/devel/ld64/Portfile	2016-08-30 22:51:42 UTC (rev 152165)
+++ trunk/dports/devel/ld64/Portfile	2016-08-31 02:59:38 UTC (rev 152166)
@@ -290,16 +290,18 @@
     # has been installed.
 
     if {![some_llvm_variant_set]} {
-        if {${os.major} >= 11} {
-            default_variants +llvm38
-        } elseif {${os.major} >= 10} {
+        if {${os.major} == 10} {
             default_variants +llvm34
-        } elseif {${os.major} >= 9} {
+        } elseif {${os.major} == 9} {
             # Using llvm-3.3 to break dependency cycle (https://trac.macports.org/ticket/52091)
             default_variants +llvm33
         }
 
         if {![some_llvm_variant_set] && ${os.major} >= 9} {
+            default_variants +llvm38
+        }
+
+        if {![some_llvm_variant_set] && ${os.major} >= 9} {
             pre-fetch {
                 ui_error "Your platform cannot be configured without LTO support in ld64.  Please enable one of the llvmXX variants, and try again."
                 return -code error "Your platform cannot be configured without LTO support in ld64.  Please enable one of the llvmXX variants, and try again."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160830/5ef1e20f/attachment.html>


More information about the macports-changes mailing list