On 10.8.2 (Mountain Lion) with Xcode 4.6, the versions are: $ clang -versionĪpple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn) While you may go unnoticed if you do that, you may get rejected during app store review if your compiler fails to do anything that Apple's compiler does. It may also break your system in subtle, non-obvious ways.īut feel free to install a second copy of clang in /usr/local or so and explore new features, but leave the system compiler alone.Īlso note that Apple do not support submitting software to the app stores that aren't built with Xcode and the compiler it includes. Replacing the compiler, or worse, system libraries, will break these compatibility guarantees. As an end-user (as opposed to developer/professional user) operating system, macOS goes to great effort to maintain compatibility with binaries built on older macOS versions. For example, last I checked Apple have their own linker.Īlso, Linuxes do not enforce binary compatibility - generally, people build software from source, or download specific binaries for each operating system version. Xcode) rely on Apple-specific extensions. I highly recommend against replacing the system compiler on macOS:
0 Comments
Leave a Reply. |