[116298] trunk/dports/_resources/port1.0/group/compilers-1.0.tcl

sean at macports.org sean at macports.org
Thu Jan 23 12:08:17 PST 2014


Revision: 116298
          https://trac.macports.org/changeset/116298
Author:   sean at macports.org
Date:     2014-01-23 12:08:17 -0800 (Thu, 23 Jan 2014)
Log Message:
-----------
compilers-1.0: add c_variant_isset

Modified Paths:
--------------
    trunk/dports/_resources/port1.0/group/compilers-1.0.tcl

Modified: trunk/dports/_resources/port1.0/group/compilers-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/compilers-1.0.tcl	2014-01-23 20:08:11 UTC (rev 116297)
+++ trunk/dports/_resources/port1.0/group/compilers-1.0.tcl	2014-01-23 20:08:17 UTC (rev 116298)
@@ -283,12 +283,13 @@
     }
 }
 
-proc compiler_variant_name {} {
-    global compilers.variants
+proc c_variant_name {} {
+    global compilers.variants compilers.fortran_variants
+    set c_list [remove_from_list ${compilers.variants} {gfortran g95}]
 
-    foreach variant ${compilers.variants} {
-        if {[variant_isset $variant]} {
-            return $variant
+    foreach cc $c_list {
+        if {[variant_isset $cc]} {
+            return $cc
         }
     }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140123/5cac44ce/attachment-0001.html>


More information about the macports-changes mailing list