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

jmr at macports.org jmr at macports.org
Tue Nov 11 11:01:11 PST 2014


Revision: 128038
          https://trac.macports.org/changeset/128038
Author:   jmr at macports.org
Date:     2014-11-11 11:01:10 -0800 (Tue, 11 Nov 2014)
Log Message:
-----------
fix argument handling in portconfigure::construct_cxxflags. "args" is a special value for Tcl procs, and is a list of all the arguments passed to the proc. The first argument is thus [lindex $args 0], not $args. Switching to a single named arg instead since that's simpler.

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

Modified: trunk/base/src/port1.0/portconfigure.tcl
===================================================================
--- trunk/base/src/port1.0/portconfigure.tcl	2014-11-11 18:29:41 UTC (rev 128037)
+++ trunk/base/src/port1.0/portconfigure.tcl	2014-11-11 19:01:10 UTC (rev 128038)
@@ -77,11 +77,11 @@
     set is_clang [string match *clang* [option configure.cxx]]
     return [expr {$has_stdlib && $is_clang}]
 }
-proc portconfigure::construct_cxxflags args {
+proc portconfigure::construct_cxxflags {flags} {
     if {[portconfigure::should_add_stdlib]} {
-        lappend args -stdlib=[option configure.cxx_stdlib]
+        lappend flags -stdlib=[option configure.cxx_stdlib]
     }
-    return $args
+    return $flags
 }
 proc portconfigure::stdlib_trace {opt action args} {
     foreach flag [lsearch -all -inline [option $opt] -stdlib=*] {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141111/c82b5db1/attachment.html>


More information about the macports-changes mailing list