[llvm-dev] Unit Tests CMake configuration

Dean Michael Berris via llvm-dev llvm-dev at lists.llvm.org
Thu Jun 7 20:44:23 PDT 2018


On Wed, Jun 6, 2018 at 5:26 AM Michael Kruse <llvmdev at meinersbur.de> wrote:
>
> 2018-06-05 3:02 GMT-05:00 Dean Michael Berris via llvm-dev
> <llvm-dev at lists.llvm.org>:
> > Does anybody know why we're not using the `add_test` feature in CMake
> > [0] for unit tests? In particular, compiler-rt (sanitizers and xray)
> > has a number of unit tests which could really just be built as normal
> > binaries and invoked appropriately.
>
> I assume this is mostly historical when LLVM was using GNU autotools,
> i.e. there was no ctest back then, and LLVM introduced llvm-lit
> (2009-09-08; could also have used dejagnu). The first CMakeLists.txt
> was introduced in 2008-09-21, but the autotools build was still
> present until 2016.
>

Thanks, that's interesting.

Any thoughts from others on whether it's worth changing this?

-- 
Dean


More information about the llvm-dev mailing list