[91312] trunk/base/src/port1.0/portconfigure.tcl

jeremyhu at macports.org jeremyhu at macports.org
Wed Mar 28 23:52:24 PDT 2012


Revision: 91312
          https://trac.macports.org/changeset/91312
Author:   jeremyhu at macports.org
Date:     2012-03-28 23:52:24 -0700 (Wed, 28 Mar 2012)
Log Message:
-----------
Set sane defaults for cc, objc, cxx, and cpp for all compiler choices.

This means that configure.cpp will be set to something sane when
clang is the default compiler.  See #33598

Modified Paths:
--------------
    trunk/base/src/port1.0/portconfigure.tcl

Modified: trunk/base/src/port1.0/portconfigure.tcl
===================================================================
--- trunk/base/src/port1.0/portconfigure.tcl	2012-03-29 06:36:37 UTC (rev 91311)
+++ trunk/base/src/port1.0/portconfigure.tcl	2012-03-29 06:52:24 UTC (rev 91312)
@@ -460,15 +460,16 @@
     if {$compiler == {}} {
         set compiler ${configure.compiler}
     }
+
+    # Set defaults
+    switch -exact ${type} {
+        cc   { set ret [find_developer_tool cc] }
+        objc { set ret [find_developer_tool cc] }
+        cxx  { set ret [find_developer_tool c++] }
+        cpp  { set ret [find_developer_tool cpp] }
+    }
+
     switch -exact ${compiler} {
-        cc {
-            switch -exact ${type} {
-                cc   { set ret [find_developer_tool cc] }
-                objc { set ret [find_developer_tool cc] }
-                cxx  { set ret [find_developer_tool c++] }
-                cpp  { set ret [find_developer_tool cpp] }
-            }
-        }
         gcc {
             switch -exact ${type} {
                 cc   { set ret [find_developer_tool gcc] }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120328/cad6032e/attachment.html>


More information about the macports-changes mailing list