Re: [Tinycc-devel] A Patch for -dumpmachine Option

2022-03-24 Thread Christian Jullien
I don't know if your patch will reach mob or not but, if it does, IMHO, to be useful, the output string should match what gcc/clang currently reports. For example: RPi 32bit reports: $ gcc -dumpmachine arm-linux-gnueabihf RPi 64bit reports: $ gcc -dumpmachine aarch64-linux-gnu Windows reports:

Re: [Tinycc-devel] A Patch for -dumpmachine Option

2022-03-24 Thread Domingo Alvarez Duarte
Looking at the patch I think that somehow it can be a good idea to create a new header/source to hold all (or as much as possible) of the platforms machinery in one place instead of spread through everywhere, like the functionality of "-dumpmachine" would be on that header/source. On 24/3/22 1

[Tinycc-devel] A Patch for -dumpmachine Option

2022-03-24 Thread Ziyao
Hi list, I have made a small patch which adds option "-dumpmachine" support to TinyCC.This option is widely supported by both gcc and clang.Some configure scripts detect the platform information by passing this option to the C compiler,such as musl libc. And by the way,what is the proper way to c