Changeset 96267


Ignore:
Timestamp:
Aug 6, 2012, 8:02:12 PM (8 years ago)
Author:
jmr@…
Message:

g95: avoid parse error when build_arch is not in the array of recognised values (#35432)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/lang/g95/Portfile

    r94945 r96267  
    3030}
    3131
     32set triple ""
    3233if {[variant_isset gcc42]} {
    3334    set version_gcc 4.2.4
    3435    dist_subdir     gcc42
    3536    array set barch {ppc powerpc ppc64 powerpc64 i386 i386 x86_64 x86_64}
    36     set triple      $barch(${build_arch})-apple-darwin${os.major}
     37    if {[info exists barch(${build_arch})]} {
     38        set triple      $barch(${build_arch})-apple-darwin${os.major}
     39    }
    3740} else {
    3841    set version_gcc 4.0.4
Note: See TracChangeset for help on using the changeset viewer.