Ignore:
Timestamp:
Dec 24, 2014, 12:42:39 AM (4 years ago)
Author:
sean@…
Message:

mpi-1.0: remove mpi.choose

This variable never worked correctly and caused mpi ports to wrongly list
fortran variants when only a c/cxx compiler was needed. So, we use
compilers.choose now.

File:
1 edited

Legend:

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

    r127403 r129985  
    4343default mpi.required_variants {}
    4444
    45 set mpi.list {cc cxx f77 f90 fc}
    4645set mpi.cc   mpicc
    4746set mpi.cxx  mpicxx
     
    119118                    set mpi.fc mpif90-$mpidb($variant,name)-\$p_name
    120119
    121                     foreach compiler \${mpi.list} {
     120                    foreach compiler \${compilers.list} {
    122121                        if {\$compiler ne "fc"} {
    123122                            configure.\$compiler \${prefix}/bin/mpi\${compiler}-$mpidb($variant,name)-\$p_name
    124123                        }
    125124                    }
    126                     if {[lsearch -exact \${mpi.list} fc]} {
     125                    if {[lsearch -exact \${compilers.list} fc]} {
    127126                        set configure.fc \${prefix}/bin/mpif90-$mpidb($variant,name)-\$p_name
    128127                    }
     
    199198proc mpi_variant_isset {} {
    200199    return [expr {[mpi_variant_name] ne ""}]
    201 }
    202 
    203 proc mpi.choose {args} {
    204     global mpi.list
    205 
    206     # zero out the variable before and append args
    207     set mpi.list {}
    208     foreach v $args {
    209         lappend mpi.list $v
    210     }
    211200}
    212201
Note: See TracChangeset for help on using the changeset viewer.