tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] uname -o is not valid on macOS


From: Christian JULLIEN
Subject: Re: [Tinycc-devel] uname -o is not valid on macOS
Date: Fri, 12 Aug 2022 09:11:03 +0200 (CEST)

Yes!
test $(uname) = Linux && test $(uname -o) = Android && targetos=Android
Prevents macOS to display an error

Grischka, can you please make this change or do a similar fix?

Christian



Le : 12 août 2022 à 07:56 (GMT +02:00)
De : "Elijah Stone" <elronnd@elronnd.net>
À : "tinycc-devel@nongnu.org" <tinycc-devel@nongnu.org>
Objet : Re: [Tinycc-devel] uname -o is not valid on macOS


then how about this: test $(uname) = Linux && test $(uname -o) = Android && targetos=Android

On Fri, 12 Aug 2022, grischka wrote:

> On 11.08.2022 11:02, Christian JULLIEN wrote:
>>
>> Here:
>>
>> test "$(uname -o)" = "Android" && targetos=Android
>>
>> Why not just "$(uname)" ?
>
> Well, because on Android just uname gives "Linux".
>
>>
>> It shows an error but script continues
>
> _______________________________________________
> Tinycc-devel mailing list
> Tinycc-devel@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/tinycc-devel
>

_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

reply via email to

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