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

Proposal of two release goals: honor of the CC and CXX variables + clang as a second compiler for Debian



Hello,

I would like to propose two release goals for Jessie (and probably
Jessie + 1).

First, I would like to propose a release goal which will aim to make
sure that the CC and CXX variables are honored.
Currently, last time I tried, around 40 % of the packages will not take
in account such declaration [1].
CC=/usr/bin/randomcompiler CXX=/usr/bin/randomcompiler++ dpkg-buildpackage

This will require fixes in Debian build system and, in some cases,
upstream build systems (even if autotools based and cmake based should
be fine).

This first release goal is interesting for my second item but also for
experimentations with other tools like scan-build (and maybe to cross
building purposes too).


Second, for those who know me, it won't be surprise ;). I would like to
propose the support of clang (the compiler based on LLVM) as a second
compiler for the Debian archive.
Even if this will require some fixes in Debian codes, I am going to take
some of the load on LLVM/Clang (One of the way will be to decrease the
number of warnings activated by default in Clang and move some errors to
warnings: the -O6 error for example).
Of course, this release goal depends on the first one (there are
workarounds but not very clean).

I am going to write the wiki pages probably tomorrow.

Regards,
Sylvestre

[1] Basically, I replaced
/usr/bin/gcc* and /usr/bin/g++* by a script like:
#!/bin/sh

echo "This should not be used"
exit 42

and relaunched a full rebuild


Reply to: