[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: building against Clang



Jonas Smedegaard <dr@jones.dk> writes:
> Quoting Russ Allbery (2014-10-28 17:20:02) at debian-vote@l.d.o

>> For the compiler, all of Debian is built with GCC, but some teams do
>> test builds with Clang and report bugs, which most maintainers merge
>> and some don't.

> Speaking of which: Is it Policy or just habit to use GCC over Clang?

I think it's just habit, plus the fact that histoorically GCC has been
very portable to different architectures, which is something that we care
a lot about.  Using different compilers on different architectures is a
little nerve-wracking, since one can then easily get problems not easily
reproduced on common architectures.

Clang does have some nice advantages over GCC, so being able to use either
is a good project, but I'm not sure it makes sense to start building a lot
of software with it.  That said, if the software prefers Clang as the
compiler upstream, there probably isn't anything inherently wrong with it
either.

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>


Reply to: