Ticket #24112: portconfigure.tcl.diff

File portconfigure.tcl.diff, 1.1 KB (added by macports@…, 14 years ago)
  • portconfigure.tcl

    old new  
    207207        macports-gcc-4.3 { set name "MacPorts gcc 4.3" }
    208208        macports-gcc-4.4 { set name "MacPorts gcc 4.4" }
    209209        macports-llvm-gcc-4.2 { set name "MacPorts llvm-gcc 4.2" }
     210        macports-clang { set name "MacPorts clang" }
    210211        default { return -code error "Invalid value for configure.compiler" }
    211212    }
    212213    ui_debug "Using compiler '$name'"
     
    288289        llvm-gcc-4.2 -
    289290        clang -
    290291        apple-gcc-4.0 -
    291         apple-gcc-4.2 {
     292        apple-gcc-4.2 -
     293        macports-clang {
    292294            return yes
    293295        }
    294296        default {
     
    461463                f90  { set ret ${prefix}/bin/llvm-gfortran-4.2 }
    462464            }
    463465        }
     466        macports-clang {
     467            switch -exact ${type} {
     468                cc   { set ret ${prefix}/bin/clang }
     469                objc { set ret ${prefix}/bin/clang }
     470            }
     471        }
    464472    }
    465473    return $ret
    466474}