Using platforms in 2.8.0

Kirill A. Korinsky kirill at korins.ky
Sat Oct 22 11:03:48 UTC 2022


clear, thanks

--
wbr, Kirill

> On 22. Oct 2022, at 13:03, Joshua Root <jmr at macports.org> wrote:
> 
> On 2022-10-22 21:56 , Kirill A. Korinsky wrote:
>> I'm asking is there a way to support specified arch inside platform block's condition. Like:
>> platform {aarch64}  {
>> ...
>> }
> 
> You can certainly do things like:
> 
> platform darwin arm {
> ...
> }
> 
> or:
> 
> if {$build_arch eq "arm64"} {
> ...
> }
> 
> There is no arch comparison possible in the platforms option, because that job is already being done by the supported_archs option. If you have some really complicated compatibility requirement that can't be expressed any other way, I guess you can set platforms differently based on the arch, or supported_archs differently based on the platform.
> 
> - Josh

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20221022/0f0e3b71/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20221022/0f0e3b71/attachment.sig>


More information about the macports-dev mailing list