Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22037

Is “gcc” on macOS actually “clang”? [duplicate]

$
0
0

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:

enter image description 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:

enter image description here

It seems like the file /usr/bin/clang was copied and then renamed to gcc.

What's going on here?


Viewing all articles
Browse latest Browse all 22037

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>