[100084] trunk/dports/_resources/port1.0/group/ compiler_blacklist_versions-1.0.tcl

ryandesign at macports.org ryandesign at macports.org
Tue Nov 27 04:35:00 PST 2012


Revision: 100084
          https://trac.macports.org/changeset/100084
Author:   ryandesign at macports.org
Date:     2012-11-27 04:34:59 -0800 (Tue, 27 Nov 2012)
Log Message:
-----------
compiler_blacklist_versions-1.0.tcl: cache the compiler versions

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

Modified: trunk/dports/_resources/port1.0/group/compiler_blacklist_versions-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/compiler_blacklist_versions-1.0.tcl	2012-11-27 10:45:30 UTC (rev 100083)
+++ trunk/dports/_resources/port1.0/group/compiler_blacklist_versions-1.0.tcl	2012-11-27 12:34:59 UTC (rev 100084)
@@ -49,7 +49,7 @@
 #
 # Known limitations:
 #
-# Trying to remove an enhanced compiler.blacklist specifications will not work
+# Trying to remove an enhanced compiler.blacklist specification will not work
 # (it will silently do nothing):
 # compiler.blacklist-delete {clang >= 421.11.66}
 # Workaround:
@@ -98,6 +98,10 @@
 }
 
 proc compiler_blacklist_versions._get_compiler_version {compiler} {
+    global compiler_blacklist_versions._compiler_versions
+    if {[info exists compiler_blacklist_versions._compiler_versions(${compiler})]} {
+        return [set compiler_blacklist_versions._compiler_versions(${compiler})]
+    }
     switch ${compiler} {
         clang {
             set re {clang-([0-9.]+)}
@@ -118,5 +122,6 @@
     if {![info exists compiler_version]} {
         return -code error "couldn't determine build number of compiler “${compiler}”"
     }
+    set compiler_blacklist_versions._compiler_versions(${compiler}) ${compiler_version}
     return ${compiler_version}
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121127/214705e6/attachment.html>


More information about the macports-changes mailing list