It has been proposed to replace this by: test $(uname) = Linux && test $(uname -o) = Android && targetos=Android
Which works well also on macOS. It has been neither accepted nor rejected. -----Original Message----- From: Tinycc-devel [mailto:[email protected]] On Behalf Of Moritz Messner Sent: Sunday, September 04, 2022 22:08 To: [email protected] Subject: Re: [Tinycc-devel] uname -o was not portable This came up a couple weeks ago and was rejected, because uname -s return Linux when executed on Android, while -o return Android. But best check the mailing list archives as I'm not completely sure what the consensus was -------- Original Message -------- From: Niklas Rosencrantz <[email protected]> Sent: September 4, 2022 9:14:14 PM GMT+02:00 To: [email protected] Subject: [Tinycc-devel] uname -o was not portable make failed on macOS (Apple M1) seemingly because uname -o is not working with Apple/macOS. But uname -s did work so I committed a small edit for that. I checked it with a native Linux system that it didn't break the Linux build. I hope it's alright? https://repo.or.cz/tinycc.git/commit/4410dbdd7fcb1ab5133ece7d77a523189c4996e8 Cheers \n _______________________________________________ Tinycc-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/tinycc-devel _______________________________________________ Tinycc-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/tinycc-devel
