Ignore:
Timestamp:
Jan 23, 2014, 8:08:50 PM (5 years ago)
Author:
sean@…
Message:

compilers-1.0: add fortran_active_variant_name proc

File:
1 edited

Legend:

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

    r116303 r116304  
    312312}
    313313
     314proc fortran_active_variant_name {depspec} {
     315    global compilers.fortran_variants
     316
     317    foreach fc ${compilers.fortran_variants} {
     318        if {![catch {set result [active_variants $depspec $fc ""]}]} {
     319            if {$result} {
     320                return $fc
     321            }
     322        }
     323    }
     324
     325    return ""
     326}
     327
    314328proc fortran_variant_name {} {
    315329    global compilers.fortran_variants
Note: See TracChangeset for help on using the changeset viewer.