tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Unable to find include directories by tcc on Catalina


From: Peng Yu
Subject: Re: [Tinycc-devel] Unable to find include directories by tcc on Catalina
Date: Sun, 28 Mar 2021 11:21:59 -0500

On Sun, Mar 28, 2021 at 11:15 AM Christian Jullien <eligis@orange.fr> 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



reply via email to

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