[72937] trunk/base/src/port1.0/portconfigure.tcl
mfeiri at macports.org
mfeiri at macports.org
Sat Oct 30 08:39:45 PDT 2010
Revision: 72937
http://trac.macports.org/changeset/72937
Author: mfeiri at macports.org
Date: 2010-10-30 08:39:42 -0700 (Sat, 30 Oct 2010)
Log Message:
-----------
add macports-clang
Modified Paths:
--------------
trunk/base/src/port1.0/portconfigure.tcl
Modified: trunk/base/src/port1.0/portconfigure.tcl
===================================================================
--- trunk/base/src/port1.0/portconfigure.tcl 2010-10-30 15:30:50 UTC (rev 72936)
+++ trunk/base/src/port1.0/portconfigure.tcl 2010-10-30 15:39:42 UTC (rev 72937)
@@ -212,6 +212,7 @@
macports-gcc-4.5 { set name "MacPorts gcc 4.5" }
macports-gcc-4.6 { set name "MacPorts gcc 4.6" }
macports-llvm-gcc-4.2 { set name "MacPorts llvm-gcc 4.2" }
+ macports-clang { set name "MacPorts clang" }
default { return -code error "Invalid value for configure.compiler" }
}
ui_debug "Using compiler '$name'"
@@ -340,7 +341,8 @@
llvm-gcc-4.2 -
clang -
apple-gcc-4.0 -
- apple-gcc-4.2 {
+ apple-gcc-4.2 -
+ macports-clang {
return yes
}
default {
@@ -520,6 +522,14 @@
f90 { set ret ${prefix}/bin/llvm-gfortran-4.2 }
}
}
+ macports-clang {
+ switch -exact ${type} {
+ cc { set ret ${prefix}/bin/clang }
+ objc { set ret ${prefix}/bin/clang }
+ cxx { set ret ${prefix}/bin/clang++ }
+ cpp { set ret ${prefix}/bin/clang++ }
+ }
+ }
}
return $ret
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101030/a59054e7/attachment.html>
More information about the macports-changes
mailing list