Does macOS have clang
and gcc
at the same time, but they are actually the same thing?
When I ran the following command:
gcc -v
I discovered that "gcc" is actually "clang", as shown in the screenshot here:
I then found two files on my MacBook: /usr/bin/gcc
and /usr/bin/clang
. They appear to be separate files rather than symbolic links, but I suspect they have the same content, as shown in the screenshot here:
It seems like the file
/usr/bin/clang
was copied and then renamed togcc
.
What's going on here?