Getting the string "i386,x86_64"
Ryan Schmidt
ryandesign at macports.org
Wed Jul 24 01:48:39 PDT 2013
On Jul 24, 2013, at 02:57, Mojca Miklavec wrote:
> MacPorts provides a procedure
> get_canonical_archflags
> which returns "-arch i386 -arch x86_64". Is there any procedure that
> would return "i386,x86_64" instead?
The cmake portgroup does:
configure.universal_args-append \
-DCMAKE_OSX_ARCHITECTURES="[join ${configure.universal_archs} \;]"
So you could get it with a comma using:
[join ${configure.universal_archs} ,]
Note that's not canonical; that's only applicable when the universal variant is selected.
More information about the macports-dev
mailing list