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

Dean Michael Berris via llvm-dev llvm-dev at lists.llvm.org
Tue Oct 3 21:49:52 PDT 2017


> On 4 Oct 2017, at 04:43, Chris Bieneman <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> 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

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


More information about the llvm-dev mailing list