Ignore:
Timestamp:
Apr 11, 2014, 12:12:40 AM (5 years ago)
Author:
sean@…
Message:

mpi-1.0: move enforce proc into pre-fetch to avoid parse errors

File:
1 edited

Legend:

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

    r116348 r118764  
    4141default mpi.variants {}
    4242default mpi.require 0
     43default mpi.required_variants {}
    4344
    4445set mpi.list {cc cxx f77 f90 fc}
     
    154155
    155156proc mpi.enforce_variant {args} {
     157    global mpi.required_variants
     158    set mpi.required_variants $args
     159}
     160
     161proc mpi.action_enforce_variants {args} {
    156162    foreach portname $args {
    157163        if {![catch {set result [active_variants $portname "" ""]}]} {
     
    166172            }
    167173
    168             compilers.enforce_c $portname
     174            eval compilers.action_enforce_c $portname
    169175        }
    170176    }
     
    275281        return -code error "must set at least one mpi variant"
    276282    }
    277 }
     283    eval mpi.action_enforce_variants ${mpi.required_variants}
     284}
Note: See TracChangeset for help on using the changeset viewer.