Joshua Root <[email protected]> wrote:
> On 2022-11-1 11:45 , Nils Breunese wrote:
>
>> So when a port installs one pre-built binary on x86_64 and another on arm64,
>> regardless of OS version, setting 'platforms {darwin any}’ would be
>> appropriate and correct?
>
> Sure. Unless the x86_64 binary was built targeting 10.5 though, you probably
> also need to restrict the versions. E.g. if the binary works on 10.12 and
> later:
>
> platforms {darwin any} {darwin >= 16}
Should that be ‘platforms {darwin >= 16}’? If not, I don’t really understand
the syntax above yet.
I already have Daerwin version checks in place, but I should indeed also be
able to get rid of those if-statements using this new platforms syntax with
version check.
Nils.