[llvm-dev] Unit tests in compiler-rt not rebuilding with changes to runtimes?

George Karpenkov via llvm-dev llvm-dev at lists.llvm.org
Fri Oct 13 18:16:13 PDT 2017


https://reviews.llvm.org/D38917 should fix both issues: please take a look.

> On Oct 13, 2017, at 3:21 PM, George Karpenkov via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> I’m looking into this.
> Could be connected to a CMake refactoring I have done in August.
> Unfortunately xray does not work on macOS, so I might have not spotted this issue.
> 
> Now noticed another bug: XRay unit-tests do not seem to be run at all, also they do recompile on changes.
> Lit tests are still being run.
> 
>> On Oct 3, 2017, at 9:49 PM, Dean Michael Berris via llvm-dev <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote:
>> 
>>> 
>>> On 4 Oct 2017, at 04:43, Chris Bieneman <beanz at apple.com <mailto:beanz at apple.com>> wrote:
>>> 
>>> I want to make sure I understand the problem so I can try to reproduce it.
>>> 
>>> When you say "make changes to the runtime" you mean code in compiler-rt/lib/xray ?
>>> 
>> 
>> Yes.
>> 
>>> Are you using the mono-repo prototype? If not, where do you have compiler-rt's sources (llvm/projects or llvm/runtimes)?
>>> 
>> 
>> Not the mono-repo prototype, I have the compiler-rt sources in llvm/projects/compiler-rt.
>> 
>>> Lastly, can you provide your CMake configuration command line?
>> 
>> cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -G Ninja -DCMAKE_CXX_COMPILER=clang++-3.9 -DCMAKE_C_COMPILER=clang-3.9 -DCMAKE_ASM_COMPILER=clang-3.9 -DLLVM_USE_LINKER=gold -DLLVM_USE_SPLIT_DWARF=On -DBUILD_SHARED_LIBS=ON -DLLVM_OPTIMIZED_TABLEGEN=On -DCOMPILER_RT_BUILD_XRAY=On -DLLVM_ENABLE_ASSERTIONS=On -DCOMPILER_RT_INCLUDE_TESTS=On -DLLVM_ENABLE_SPHINX=On -DSPHINX_WARNINGS_AS_ERRORS=On -DCMAKE_CXX_FLAGS="-Wpedantic" -DCMAKE_CXX_COMPILER_LAUNCHER=ccache ../llvm
>> 
>> I'm building in Linux, x86_64.
>> 
>> Cheers
>> 
>>> 
>>> Thanks,
>>> -Chris
>>> 
>>>> On Oct 3, 2017, at 4:58 AM, Dean Michael Berris <dean.berris at gmail.com <mailto:dean.berris at gmail.com>> wrote:
>>>> 
>>>> Hi llvm-dev,
>>>> 
>>>> I have unit tests set up in the XRay implementation (compiler-rt/lib/xray/tests/unit) following the pattern that the TSAN and other sanitiser unit tests. However, I'm running into the following problem:
>>>> 
>>>> When I make changes to the runtime (in this case, XRay) and do `ninja all check-xray`, it seems that the unit tests don't get re-liked to the new version of the runtime.
>>>> 
>>>> It could be something obviously that I'm doing wrong here, but does anybody have ideas how to avoid this?
>>>> 
>>>> Cheers
>>>> 
>>>> -- Dean
>>>> 
>>> 
>> 
>> -- Dean
>> 
>> _______________________________________________
>> LLVM Developers mailing list
>> llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev <http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171013/11df5c70/attachment.html>


More information about the llvm-dev mailing list