3 ms·
Why is it not possible to compile gcc with llvm-gcc? The last time I checked llvm-gcc compiles C and C++ with most GNU extensions.
by zmanji 15y ago
Why is it not possible to compile gcc with llvm-gcc? The last time I checked llvm-gcc compiles C and C++ with most GNU extensions.
- jensnockert 15y agoBecause of bugs and age, the gcc-gcc that Apple shipped when it shipped gcc-gcc couldn't compile the latest gcc either. (And llvm-gcc is based on that version, which is 4.2.1 or something, about 5 years old)
- pavlov 15y agoThe gcc installed by Xcode 4.0.2 is able to compile working gcc cross-compilers. The llvm-gcc installed by Xcode 4.1+ isn't. This is problematic for the Cocotron project [1], which is an Xcode-compatible cross-compiler environment for creating Windows/Linux ports of Cocoa apps. Currently one has to revert to Xcode 4.0.2 to build Cocotron's cross-compiler, then upgrade back to 4.2... This is not terribly convenient. (I guess the long-term solution is that Cocotron either has to add a dependency on a non-Apple gcc, or needs to switch to clang for its cross-compiler.) [1] http://code.google.com/p/cocotron/ http://code.google.com/p/cocotron/