On Wed, 17 Oct 2012 14:55:32 -0500, Albert Cheng said: >are still a bit uncertain for me, especially in the compiler areas as >Apple seems to have made some >changes in Mountain Lion.
Historically, Apple has shipped gcc. Then they started moving to clang. In between, they shipped both, and a hybrid named llvm-gcc which had the frontend of one, and the backend of the other. >% ll /usr/bin/gcc >lrwxr-xr-x 1 root wheel 12 Aug 24 13:53 /usr/bin/gcc -> llvm-gcc-4.2 "gcc" is maintained as a symlink, since so many scripts expect it to exist. Here's it's pointing to the llvm-gcc hybrid. >% cc --version >Apple clang version 4.0 (tags/Apple/clang-421.0.60) (based on LLVM 3.1svn) >Target: x86_64-apple-darwin12.2.0 >Thread model: posix That's clang. >Would Mac users prefer us reporting: >1. Only Xcode version and NO more cc or gcc version? >2. Show both Xcode and cc or gcc verison? As you see above, Xcode includes multiple compliers, and the default one changes over time, so #2 is best. Cheers, -- ____________________________________________________________ Sean McBride, B. Eng [email protected] Rogue Research www.rogue-research.com Mac Software Developer Montréal, Québec, Canada _______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
