Ticket #24112: portconfigure.tcl.diff
File portconfigure.tcl.diff, 1.1 KB (added by macports@…, 15 years ago) |
---|
-
portconfigure.tcl
old new 207 207 macports-gcc-4.3 { set name "MacPorts gcc 4.3" } 208 208 macports-gcc-4.4 { set name "MacPorts gcc 4.4" } 209 209 macports-llvm-gcc-4.2 { set name "MacPorts llvm-gcc 4.2" } 210 macports-clang { set name "MacPorts clang" } 210 211 default { return -code error "Invalid value for configure.compiler" } 211 212 } 212 213 ui_debug "Using compiler '$name'" … … 288 289 llvm-gcc-4.2 - 289 290 clang - 290 291 apple-gcc-4.0 - 291 apple-gcc-4.2 { 292 apple-gcc-4.2 - 293 macports-clang { 292 294 return yes 293 295 } 294 296 default { … … 461 463 f90 { set ret ${prefix}/bin/llvm-gfortran-4.2 } 462 464 } 463 465 } 466 macports-clang { 467 switch -exact ${type} { 468 cc { set ret ${prefix}/bin/clang } 469 objc { set ret ${prefix}/bin/clang } 470 } 471 } 464 472 } 465 473 return $ret 466 474 }