[haiku-development] Re: Please don't require cmd:gcc / cmd:g++ in recipes

  • From: Jonathan Schleifer <js-haiku-development@xxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 30 Mar 2014 00:38:35 +0100

Am 29.03.2014 um 21:48 schrieb Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>:

> Am 28/03/2014 22:42, schrieb Jonathan Schleifer:
>> … and use cmd:cc / cmd:c++ instead.
> 
> As long as the two aren't completely compatible and interchangeable (as in 
> drop-in replacement),

Clang is designed as a drop-in replacement indeed. And that works for most 
software quite well. The exception is software that depends on heinous GNU 
extensions ;).

> that change doesn't make sense (as they actually could not be built with 
> clang), and if they are, it's not needed, as clang could just provide g++ and 
> gcc, too.

You can install clang and gcc alongside and have the cc / c++ symlink point to 
the compiler you prefer.

> Am I missing something? :-)

Yes, currently, clang calls gcc for linking, which would result in calling 
itself then ;).

--
Jonathan

Other related posts: