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

mpi-1.0: add mpi_active_variant_name proc

File:
1 edited

Legend:

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

    r116343 r116344  
    123123}
    124124
     125proc mpi_active_variant_name {depspec} {
     126    global mpi.variants
     127
     128    foreach m ${mpi.variants} {
     129        if {![catch {set result [active_variants $depspec $m ""]}]} {
     130            if {$result} {
     131                return $m
     132            }
     133        }
     134    }
     135
     136    return ""
     137}
     138
    125139proc mpi_variant_name {} {
    126140    global mpi.variants
Note: See TracChangeset for help on using the changeset viewer.