using clang with pbuilder/cowbuilder

Today, Junich Uekawa has added some compiler support hook to pbuilder (thanks!), so you can test your package with clang easily.

How to use)

  1. install newest pbuilder
  2. enable hook script "D65various-complier-support" to your pbuilder hook directory
  3. specify "CHOOSE_COMPILER" variables and build

$ cp /usr/share/doc/pbuilder/examples/D65various-complier-support /your/hook/dir/
$ sudo CHOOSE_COMPILER=clang cowbuilder --build yourpackage_1.00-1.dsc

clang maybe little bit strict than gcc4.7, and its outputs looks good, have fun :)

Popular Posts