config-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] config.guess: Fix aarch64 macOS detection with GNU uname


From: Hayden Seay
Subject: Re: [PATCH] config.guess: Fix aarch64 macOS detection with GNU uname
Date: Tue, 23 Mar 2021 09:11:58 -0400 (EDT)

Here is the output on an iPhone 11 Pro.

diatrus@Grey-7 /p/v/diatrus [125]> bash test.sh
uname -m = "iPhone12,3"
uname -p = "arm64"
uname -r = "20.2.0"
uname -s = "Darwin"
uname -v = "Darwin Kernel Version 20.2.0: Fri Nov 13 01:00:15 PST 2020; 
root:xnu-7195.62.1~4/RELEASE_ARM64_T8030"

- Hayden Seay 


> On 03/23/2021 9:07 AM Zack Weinberg <zackw@panix.com> wrote:
> 
>  
> On Tue, Mar 23, 2021 at 8:29 AM me@diatr.us <me@diatr.us> wrote:
> >
> > This is needed on Apple iOS devices.
> > Compiling on an iPhone or iPad, UNAME_MACHINE is equivalent to the device 
> > model. (e.g. iPhone12,3)
> 
> To avoid all doubt, could you please copy and paste the output of the
> appended shell script on an iOS device?
> 
> For reference, this is what it prints on the GCC Compile Farm's arm64
> OSX machine:
> 
> uname -m = "arm64"
> uname -p = "arm"
> uname -r = "20.3.0"
> uname -s = "Darwin"
> uname -v = "Darwin Kernel Version 20.3.0: Thu Jan 21 00:06:51 PST
> 2021; root:xnu-7195.81.3~1/RELEASE_ARM64_T8101"
> 
> Thanks,
> zw
> 
> #! /bin/sh
> UNAME_MACHINE=$( (uname -m) 2>/dev/null) || UNAME_MACHINE=unknown
> UNAME_PROCESSOR=$( (uname -p) 2>/dev/null) || UNAME_PROCESSOR=unknown
> UNAME_RELEASE=$( (uname -r) 2>/dev/null) || UNAME_RELEASE=unknown
> UNAME_SYSTEM=$( (uname -s) 2>/dev/null) || UNAME_SYSTEM=unknown
> UNAME_VERSION=$( (uname -v) 2>/dev/null) || UNAME_VERSION=unknown
> 
> printf 'uname -m = "%s"\n' "$UNAME_MACHINE"
> printf 'uname -p = "%s"\n' "$UNAME_PROCESSOR"
> printf 'uname -r = "%s"\n' "$UNAME_RELEASE"
> printf 'uname -s = "%s"\n' "$UNAME_SYSTEM"
> printf 'uname -v = "%s"\n' "$UNAME_VERSION"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]