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

compilers-1.0: add c_active_variant_name proc

File:
1 edited

Legend:

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

    r116302 r116303  
    284284}
    285285
     286proc c_active_variant_name {depspec} {
     287    global compilers.variants compilers.fortran_variants
     288    set c_list [remove_from_list ${compilers.variants} {gfortran g95}]
     289
     290    foreach c $c_list {
     291        if {![catch {set result [active_variants $depspec $c ""]}]} {
     292            if {$result} {
     293                return $c
     294            }
     295        }
     296    }
     297
     298    return ""
     299}
     300
    286301proc c_variant_name {} {
    287302    global compilers.variants compilers.fortran_variants
Note: See TracChangeset for help on using the changeset viewer.