[79762] trunk/base/src/port1.0/portutil.tcl

jmr at macports.org jmr at macports.org
Fri Jun 24 19:54:57 PDT 2011


Revision: 79762
          http://trac.macports.org/changeset/79762
Author:   jmr at macports.org
Date:     2011-06-24 19:54:56 -0700 (Fri, 24 Jun 2011)
Log Message:
-----------
add get_canonical_archflags proc

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

Modified: trunk/base/src/port1.0/portutil.tcl
===================================================================
--- trunk/base/src/port1.0/portutil.tcl	2011-06-25 02:31:56 UTC (rev 79761)
+++ trunk/base/src/port1.0/portutil.tcl	2011-06-25 02:54:56 UTC (rev 79762)
@@ -2643,6 +2643,18 @@
     }
 }
 
+# returns the flags that should be passed to the compiler to choose arch(s)
+proc get_canonical_archflags {{tool cc}} {
+    if {![variant_exists universal] || ![variant_isset universal]} {
+        return [option configure.${tool}_archflags]
+    } else {
+        if {$tool == "cc" || $tool == "objc"} {
+            set tool c
+        }
+        return [option configure.universal_${tool}flags]
+    }
+}
+
 # check that the selected archs are supported
 proc check_supported_archs {} {
     global supported_archs build_arch universal_archs configure.build_arch configure.universal_archs subport
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110624/17ddc2ff/attachment.html>


More information about the macports-changes mailing list