Ticket #33598: portconfigure.tcl.patch

File portconfigure.tcl.patch, 996 bytes (added by jeremyhu (Jeremy Huddleston Sequoia), 12 years ago)

portconfigure.tcl.patch

  • portconfigure.tcl

     
    460460    if {$compiler == {}} {
    461461        set compiler ${configure.compiler}
    462462    }
     463
     464    # Set defaults
     465    switch -exact ${type} {
     466        cc   { set ret [find_developer_tool cc] }
     467        objc { set ret [find_developer_tool cc] }
     468        cxx  { set ret [find_developer_tool c++] }
     469        cpp  { set ret [find_developer_tool cpp] }
     470    }
     471
    463472    switch -exact ${compiler} {
    464         cc {
    465             switch -exact ${type} {
    466                 cc   { set ret [find_developer_tool cc] }
    467                 objc { set ret [find_developer_tool cc] }
    468                 cxx  { set ret [find_developer_tool c++] }
    469                 cpp  { set ret [find_developer_tool cpp] }
    470             }
    471         }
    472473        gcc {
    473474            switch -exact ${type} {
    474475                cc   { set ret [find_developer_tool gcc] }