diff --git a/src/port/portindex.tcl b/src/port/portindex.tcl
index ff6ffe72..dba778d8 100644
a
|
b
|
mportinit ui_options global_options global_variations |
22 | 22 | # Standard procedures |
23 | 23 | proc print_usage args { |
24 | 24 | global argv0 |
25 | | puts "Usage: $argv0 \[-df\] \[-o output directory\] \[-p plat_ver_arch\] \[directory\]" |
| 25 | puts "Usage: $argv0 \[-df\] \[-o output directory\] \[-p plat_ver_\[cxxlib_\]arch\] \[directory\]" |
26 | 26 | puts "-d:\tOutput debugging information" |
27 | 27 | puts "-f:\tDo a full re-index instead of updating" |
28 | 28 | puts "-o:\tOutput all files to specified directory" |
… |
… |
for {set i 0} {$i < $argc} {incr i} { |
197 | 197 | set platlist [split [lindex $argv $i] _] |
198 | 198 | set os_platform [lindex $platlist 0] |
199 | 199 | set os_major [lindex $platlist 1] |
200 | | set os_arch [lindex $platlist 2] |
| 200 | if {[llength $platlist] > 3} { |
| 201 | set cxx_stdlib [lindex $platlist 2] |
| 202 | switch -- $cxx_stdlib { |
| 203 | libcxx { |
| 204 | set cxx_stdlib libc++ |
| 205 | } |
| 206 | libstdcxx { |
| 207 | set cxx_stdlib libstdc++ |
| 208 | } |
| 209 | default { |
| 210 | puts stderr "Unknown C++ standard library: $cxx_stdlib (use libcxx or libstdcxx)" |
| 211 | print_usage |
| 212 | exit 1 |
| 213 | } |
| 214 | } |
| 215 | lappend port_options cxx_stdlib $cxx_stdlib |
| 216 | set os_arch [lindex $platlist 3] |
| 217 | } else { |
| 218 | set os_arch [lindex $platlist 2] |
| 219 | } |
201 | 220 | if {$os_platform eq "macosx"} { |
202 | 221 | lappend port_options os.subplatform $os_platform os.universal_supported yes |
203 | 222 | set os_platform darwin |