News for hackers. Stuff that matters.
Re:Some Differences Between macOS and Common Unix Systems by jeffbee on Friday December 25, 2020 @10:30AM (#25536982)
Is there any particular reason people would go out of their way to use gcc on macOS? It comes with clang/llvm, which seem adequate.
Re:Some Differences Between macOS and Common Unix Systems by tyingq on Friday December 25, 2020 @10:45AM (#25537065)
Some specific pieces of C++ support that Clang is missing:

Edit: newer link: https://clang.llvm.org/cxx_status.html

(older link, not applicable, was here)

Cross compiling for some embedded architectures.

Things like FORTRAN or Ada, calling routines built there from C (or vice versa), etc.

Re:Some Differences Between macOS and Common Unix Systems by jeffbee on Friday December 25, 2020 @10:49AM (#25537085)
I don't know where you dug that up. That doc must be at least 10 years old. The clang that you get on an actual mac these days fully supports everything through C++17.
Re:Some Differences Between macOS and Common Unix Systems by tyingq on Friday December 25, 2020 @10:53AM (#25537112)
Thanks. Updated with a current link.
Re:Some Differences Between macOS and Common Unix Systems by Rebelgecko on Saturday December 26, 2020 @01:37AM (#25541870)
I've found that in certain circumstances gcc makes faster binaries
Re:Some Differences Between macOS and Common Unix Systems by voldacar on Friday December 25, 2020 @12:53PM (#25537892)
gcc usually produces slightly faster O3 binaries
Re:Some Differences Between macOS and Common Unix Systems by 1over137 on Friday December 25, 2020 @11:08AM (#25537206)
macOS does not come with llvm/clang, you have to download Xcode, which you can't do anonymously, you need to create an account with Apple. Ages ago, macOS did actually come with gcc.
Re:Some Differences Between macOS and Common Unix Systems by jeffbee on Friday December 25, 2020 @11:21AM (#25537275)
You can install the toolchain with `xcode-select` which does not require an Apple ID.
Re:Some Differences Between macOS and Common Unix Systems by kitsunesoba on Friday December 25, 2020 @02:01PM (#25538297)
And if I'm not mistaken, until clang is installed commands like "clang" and "gcc" redirect to xcode-select, so if the user tries to compile something the system will offer to install the toolchain for you.
Re:Some Differences Between macOS and Common Unix Systems by jeffbee on Friday December 25, 2020 @07:23PM (#25540281)
Yep. That's how I setup a new Mac. I open a terminal and type `make` and it installs the world.