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

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


Revision: 116299
          https://trac.macports.org/changeset/116299
Author:   sean at macports.org
Date:     2014-01-23 12:08:22 -0800 (Thu, 23 Jan 2014)
Log Message:
-----------
compilers-1.0: add clang_variants_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:17 UTC (rev 116298)
+++ trunk/dports/_resources/port1.0/group/compilers-1.0.tcl	2014-01-23 20:08:22 UTC (rev 116299)
@@ -308,6 +308,28 @@
     return ""
 }
 
+proc clang_variant_name {} {
+    global compilers.clang_variants compilers.dragonegg_variants
+
+    foreach c ${compilers.clang_variants} {
+        if {[variant_isset $c]} {
+            return $c
+        }
+    }
+
+    foreach c ${compilers.dragonegg_variants} {
+        if {[variant_isset $c]} {
+            return $c
+        }
+    }
+
+    return ""
+}
+
+proc clang_variant_isset {} {
+    return [expr {[clang_variant_name] ne ""}]
+}
+
 proc fortran_variant_isset {} {
     return [expr {[fortran_variant_name] ne ""}]
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140123/cc3d8552/attachment.html>


More information about the macports-changes mailing list