Ticket #22359: g95-error-no-gcc42.diff

File g95-error-no-gcc42.diff, 508 bytes (added by jmroot (Joshua Root), 14 years ago)

error out early if +gcc42 is needed but not set

  • Portfile

     
    2121
    2222if {(${os.platform} == "darwin" && ${os.major} == 10)||${build_arch}=="ppc64"||${build_arch}=="x86_64"} {
    2323    default_variants +gcc42
     24    pre-fetch {
     25        if {![variant_isset gcc42]} {
     26            error "$name must be built with +gcc42 on ${os.platform} ${os.major} / ${build_arch}."
     27        }
     28    }
    2429}
    2530
    2631if {[variant_isset gcc42]} {