[zorg] r195058 - Based on the patch proposed by Rick Foos!

Rick Foos rfoos at codeaurora.org
Fri Nov 22 07:11:10 PST 2013


I set ccache by PATH in the buildslave, and also path to pick 
clang-3.4-experimental. It could be done by ENV.

I couldn't force cmake to pick clang over GCC though, so I need 
something for sanitizer.

Maybe a cmakeOptions like options with the default like it used to be 
(excluding C and CXX compiler), and allow the user to add options?

-rick
On 11/21/2013 09:03 PM, Dmitri Gribenko wrote:
> On Mon, Nov 18, 2013 at 3:57 PM, Galina Kistanova <gkistanova at gmail.com> wrote:
>>       cmakeCommand = [
>>           "cmake",
>>           "-DCMAKE_BUILD_TYPE=Release",
>>           "-DLLVM_ENABLE_ASSERTIONS=ON",
>> -        "-DCMAKE_CXX_FLAGS=\"-std=c++11 -Wdocumentation -Wno-documentation-deprecated-sync\"",
>> +        "-DCMAKE_C_COMPILER=clang",
>> +        "-DCMAKE_CXX_COMPILER=clang++",
>> +        "-DCMAKE_CXX_FLAGS=\"%s\"" % (" ".join(options)),
>>           "-DLLVM_LIT_ARGS=\"-v\"",
>>           "-G", "Ninja",
>>           "../%s" % llvm_srcdir]
> Hello Galina,
>
> This change transparently disabled ccache on some of my buildbots,
> which made them slow (increased build time on
> llvm-clang-lld-x86_64-ubuntu-13.04 from 5 minutes to 20 minutes).
>
> I enable ccache by setting CC and CXX environment variables, and these
> cmake arguments override my choices.
>
> Dmitri
>


-- 
Rick Foos
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation




More information about the llvm-commits mailing list