From kde-devel Tue Feb 19 12:09:42 2013 From: Ian Wadham Date: Tue, 19 Feb 2013 12:09:42 +0000 To: kde-devel Subject: Re: kde and clang Message-Id: <55029E7D-2582-4F58-8A4B-329B6C23B709 () gmail ! com> X-MARC-Message: https://marc.info/?l=kde-devel&m=136127582113678 Hi Agostino, On 19/02/2013, at 7:59 AM, Agostino Sarubbo wrote: > I don't know if someone in the past have checked if the kde metapackage is > "compatible" with clang. I just compiled the entire kde-meta-4.9.5 right now > and all packages was fine. The Macports group have been using Clang for about a year as their default compiler for porting FOSS into recent versions of Apple OS X. That includes all released KDE software and Qt4-Mac. I am a KDE Games developer working on an Apple Macbook Pro and I have been using Clang for all my development work since about May/June last year. There is one fairly big problem and that is that the macro-generators behind KDE builds are not Clang-ready --- mainly that KDE_EXPORT and friends are not Clang-ready. This caused me a lot of grief for a while, see: https://bugs.kde.org/show_bug.cgi?id=300429 You may find the later comments by a KDE build-team guy interesting. Apart from that problem, I have found a couple of bits of legacy source code in KDE Games that caused compiler errors in Clang, but compiled OK for years in GCC. They were easily fixed, but it appears that Clang is a bit more rigorous than GCC when compiling C++. Clang works fine for me now and, as a developer, I like it better than GCC because it gives clearer diagnostics messages on souce-code errors. Cheers, Ian W. >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<