<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 8, 2014 at 2:44 PM, sgundapa <span dir="ltr"><<a href="mailto:sgundapa@codeaurora.org" target="_blank">sgundapa@codeaurora.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">No. CMake has different way of treating the .S files<br>
Refer to <a href="http://www.cmake.org/Wiki/CMake/Assembler" target="_blank">http://www.cmake.org/Wiki/CMake/Assembler</a><br>
<br>
I have a patch which will make CMake treat the .S files as source files.<br></blockquote><div><br></div><div>Let me guess, you should just call set_source_file_properties(<arm .S files> PROPERTIES LANGUAGE C)?</div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
But, how I can run the unit tests.  I see from compiler-rt/test/CMakeLists.txt<br>
<br>
# BlocksRuntime and builtins testsuites are not yet ported to lit.<br>
# add_subdirectory(BlocksRuntime)<br>
# add_subdirectory(builtins)<br>
<br>
How do you run the unit tests for builtins?<br></blockquote><div><br></div><div>Well, there is <a href="http://reviews.llvm.org/D4251">http://reviews.llvm.org/D4251</a> which adds support for running the tests under CTest, but it's not yet reviewed.</div>
<div>There's also a "test/builtins/Unit/test" script, but I doubt it will run out of the box.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<br>
<br>
--Sumanth G<br>
<div class=""><div class="h5">-----Original Message-----<br>
From: Renato Golin [mailto:<a href="mailto:renato.golin@linaro.org">renato.golin@linaro.org</a>]<br>
Sent: Tuesday, July 08, 2014 12:19 PM<br>
To: Alexey Samsonov<br>
Cc: sgundapa; LLVM Dev<br>
Subject: Re: [LLVMdev] [compiler-rt] CMake bug in building ARM builtins library<br>
<br>
On 8 July 2014 19:47, Alexey Samsonov <<a href="mailto:vonosmas@gmail.com">vonosmas@gmail.com</a>> wrote:<br>
> compiler-rt/lib/builtins/arm/*.S files are listed in arm_SOURCES<br>
> variable, and therefore should make it into the builtins static<br>
> library on ARM. Don't they?<br>
<br>
I assume so... But I'm not an expert in CMake.<br>
<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>