configure 64bit -arch test

Ryan Schmidt ryandesign at macports.org
Thu Aug 8 10:13:39 PDT 2013


On Aug 7, 2013, at 14:51, Bradley Giesbrecht wrote:

> Is there a var to indicate if any configure -arch is 64bit?
> 
> Is something like this safe?
> string first 64 [join ${configure.universal_archs}]

Nothing built-in, no.


boost uses:

if {[lsearch ${build_arch} *64] != -1} {

and

if {[lsearch ${universal_archs} *64] != -1} {


python24 has:

if {(![variant_isset universal] && ![string match *64* $build_arch]) || ([variant_isset universal] && ![string match *64* $universal_archs])} {


Seems to me like you could simplify that using [get_canonical_archs].




More information about the macports-dev mailing list