Ignore:
Timestamp:
Nov 27, 2012, 12:34:59 PM (7 years ago)
Author:
ryandesign@…
Message:

compiler_blacklist_versions-1.0.tcl: cache the compiler versions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/compiler_blacklist_versions-1.0.tcl

    r100083 r100084  
    5050# Known limitations:
    5151#
    52 # Trying to remove an enhanced compiler.blacklist specifications will not work
     52# Trying to remove an enhanced compiler.blacklist specification will not work
    5353# (it will silently do nothing):
    5454# compiler.blacklist-delete {clang >= 421.11.66}
     
    9999
    100100proc compiler_blacklist_versions._get_compiler_version {compiler} {
     101    global compiler_blacklist_versions._compiler_versions
     102    if {[info exists compiler_blacklist_versions._compiler_versions(${compiler})]} {
     103        return [set compiler_blacklist_versions._compiler_versions(${compiler})]
     104    }
    101105    switch ${compiler} {
    102106        clang {
     
    119123        return -code error "couldn't determine build number of compiler “${compiler}”"
    120124    }
     125    set compiler_blacklist_versions._compiler_versions(${compiler}) ${compiler_version}
    121126    return ${compiler_version}
    122127}
Note: See TracChangeset for help on using the changeset viewer.