<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 6, 2014 at 1:51 AM, Evgeniy Stepanov <span dir="ltr"><<a href="mailto:eugeni.stepanov@gmail.com" target="_blank">eugeni.stepanov@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hm, I'm actually doing both: building asan runtime in standalone<br>
compiler-rt build, installing it into an existing clang installation,<br>
then running tests. We'll keep supporting this workflow, right?<br></blockquote><div><br></div><div>Yes. So, targets "build asan runtime" and "run asan tests" should be independent in a</div><div>
standalone build, as you're supposed to copy asan runtime to the place where your host toolchain</div><div>will be able to use it. See clang/runtime/CMakeLists.txt: commands that run testsuites in</div><div>a standalone build tree depend on the commands that build runtimes in that tree.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I agree this dependency on "asan" is wrong. I need to figure out<br>
what's really going on there.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Fri, Jun 6, 2014 at 12:39 AM, Alexey Samsonov <<a href="mailto:vonosmas@gmail.com">vonosmas@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I think this patch is wrong.<br>
><br>
> On Thu, Jun 5, 2014 at 5:31 AM, Evgeniy Stepanov <<a href="mailto:eugeni.stepanov@gmail.com">eugeni.stepanov@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Author: eugenis<br>
>> Date: Thu Jun  5 07:31:22 2014<br>
>> New Revision: 210257<br>
>><br>
>> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=210257&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=210257&view=rev</a><br>
>> Log:<br>
>> [asan] Add 'asan' to asan test deps.<br>
>><br>
>> This sound like a good idea in general.<br>
>> Also, without this on Android we get add_lit_testsuite() with empty<br>
>> DEPENDS<br>
>> list, and it does not work well.<br>
>><br>
>> Modified:<br>
>>     compiler-rt/trunk/test/asan/CMakeLists.txt<br>
>><br>
>> Modified: compiler-rt/trunk/test/asan/CMakeLists.txt<br>
>> URL:<br>
>> <a href="http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/CMakeLists.txt?rev=210257&r1=210256&r2=210257&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/CMakeLists.txt?rev=210257&r1=210256&r2=210257&view=diff</a><br>

>><br>
>> ==============================================================================<br>
>> --- compiler-rt/trunk/test/asan/CMakeLists.txt (original)<br>
>> +++ compiler-rt/trunk/test/asan/CMakeLists.txt Thu Jun  5 07:31:22 2014<br>
>> @@ -96,7 +96,7 @@ if(COMPILER_RT_INCLUDE_TESTS)<br>
>>      ${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg)<br>
>>  endif()<br>
>><br>
>> -set(ASAN_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS})<br>
>> +set(ASAN_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS} asan)<br>
>>  if(NOT COMPILER_RT_STANDALONE_BUILD)<br>
>>    list(APPEND ASAN_TEST_DEPS asan)<br>
><br>
><br>
> asan *is* already added to the lit tests dependencies, in a non-standalone<br>
> compiler-rt build. It is not, and should not<br>
> be added to the deps in a standalone build. If you're running a<br>
> non-standalone build, they you have to build fresh Clang<br>
> and fresh runtime and use them to run tests. If you're using a standalone<br>
> build to run a test-suite, you are testing a<br>
> complete toolchain, which should just work.<br>
><br>
>><br>
>>  endif()<br>
><br>
><br>
><br>
><br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> llvm-commits mailing list<br>
>> <a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
>> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Alexey Samsonov<br>
> <a href="mailto:vonosmas@gmail.com">vonosmas@gmail.com</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Alexey Samsonov<br><a href="mailto:vonosmas@gmail.com" target="_blank">vonosmas@gmail.com</a></div>
</div></div>