A question about "make check-all"


I have successfully build the newest llvm from git source, and I would like to do some experiments on target AVR.

Does “make check-all” cover AVR? All I need some extra steps to test AVR? I have neither AVR simulator nor real AVR board connected.

Thank you.

Hi Ben,

I believe AVR isn’t built by default (it’s not in LLVM_ALL_TARGETS in CMakeLists.txt) so I believe you need to set LLVM_EXPERIMENTAL_TARGETS_TO_BUILD=AVR to include it.

Thank you!

The cmake does complaint AVR is experimental and suggest

LLVM_EXPERIMENTAL_TARGETS_TO_BUILD, and I have get clang to generate AVR assembly, and the check-all have passed, without an error but with many cases skipped, so is my build OK?

Ben Shi
在 2019年3月23日 03:00,Daniel Sanders daniel_l_sanders@apple.com写道:

It’s normal for check-all to skip some of the tests. Some of them require specific targets to be compiled or require that you’re building on a specific OS or with a specific cmake variable.

I don’t know about AVR specifically but if check-all is passing then your build is likely to be in a reasonably good state. There’s another test-suite you could use (https://llvm.org/docs/TestSuiteGuide.html) but it will require an AVR simulator or hardware since it needs to execute the compiled programs.