On Sun, Mar 28, 2021 at 11:15 AM Christian Jullien <[email protected]> wrote:
>
> Very strange!
>
> You can use another C compiler to boostrap tcc using './configure 
> -cc=<path-to-my-favorite-C-compiler>'
> The last time I tried true gcc v10.2, as below it failed on macOS.
>
> ./configure --cc=/usr/local/bin/x86_64-apple-darwin19-gcc-10.2.0
>
>
> By default, unless you install gcc with brew, gcc is an alias to clang.

Both clang and gcc are from CommandLineTools. But one is not a symlink
of the other. This fact is also reflected by the --version output that
I showed before.

It is more likely gcc is a wrapper of clang as the file size of the
former is smaller than the latter.

Why do you think one is a symlink of another. Is it the case on your machine?

$ ls -l $(which clang)
-rwxr-xr-x 1 root wheel 176961712 2021/01/08-17:54:50
/Library/Developer/CommandLineTools/usr/bin/clang
$ ls -l $(which gcc)
-rwxr-xr-x 1 root admin 167120 2021/01/08-17:55:07
/Library/Developer/CommandLineTools/usr/bin/gcc

-- 
Regards,
Peng

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to