Changeset 28477 for trunk/base


Ignore:
Timestamp:
Sep 1, 2007, 12:51:37 PM (12 years ago)
Author:
mww@…
Message:

chose a reasonable default compiler suite via platform/major

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port1.0/portconfigure.tcl

    r28474 r28477  
    116116    global configure.env configure.cflags configure.cppflags configure.cxxflags configure.ldflags
    117117    global configure.cc configure.cxx configure.cpp configure.f77 configure.f90 configure.fc configure.compiler prefix
     118    global os.platform os.major
    118119   
    119120    if {[tbool use_automake]} {
     
    129130            return -code error "[format [msgcat::mc "%s failure: %s"] autoconf $result]"
    130131        }
     132    }
     133
     134    # 1st chose a reasonable default compiler suite for each platform if none was chosen
     135    if {""==${configure.compiler}} {
     136        switch -exact "${os.platform} ${os.major}" {
     137            "darwin 7" { set configure.compiler gcc-3.3 }
     138            "darwin 8" { set configure.compiler gcc-4.0 }
     139            "darwin 9" { set configure.compiler gcc-4.0 }
     140        }
    131141    }
    132142
Note: See TracChangeset for help on using the changeset viewer.