[llvm-dev] Running LNT and the LLVM test-suite on Windows

Martin J. O'Riordan via llvm-dev llvm-dev at lists.llvm.org
Fri Sep 2 07:57:29 PDT 2016

I assume this is referring to the new Linux compatibility subsystem for Windows 10; or do you mean the older Posix subsystem?

I will certainly investigate all approaches to find which works best for my cross-compiler, it has an unusual link and run model to other cross-compilers I have worked on, so a lot of the trouble will be writing a suitable wrapper for it.

Thanks again,


-----Original Message-----
From: meinersbur at googlemail.com [mailto:meinersbur at googlemail.com] On Behalf Of Michael Kruse
Sent: 02 September 2016 15:34
To: Chris Matthews <chris.matthews at apple.com>
Cc: Martin J. O'Riordan <martin.oriordan at movidius.com>; Michael Kruse via llvm-dev <llvm-dev at lists.llvm.org>
Subject: Re: [llvm-dev] Running LNT and the LLVM test-suite on Windows

I am not sure whether this was a response to my proposed "Windows subsystem for Linux" solution. I can confirm that it works fine as I use it regularly (sanitizer builds unfortunately do not work)

As with a virtual machine, you have to create a llvm/clang build for use within the subsystem, but sources can be shared with symbolic links into the Windows filesystem.

It cannot work "natively" on Windows as many test-suite programs require Unix-specific headers. You'd have to rewrite the platform-specific parts of those first/exclude them from test-suite.


2016-09-02 16:01 GMT+02:00 Chris Matthews <chris.matthews at apple.com>:
> There is no way this will work first try, but there is no reason this 
> cant work with some fixups. We have not been testing it, so im sure 
> there will be glitches.
> I'd start by running the test-suite with cmake, and see how it goes, 
> then move on to LNT.
> On September 2, 2016 at 4:18:29 AM, Michael Kruse via llvm-dev
> (llvm-dev at lists.llvm.org) wrote:
>> 2016-09-02 12:26 GMT+02:00 Martin J. O'Riordan via llvm-dev
>> <llvm-dev at lists.llvm.org>:
>> Is it possible to run the LLVM test-suite using LNT on Windows? Even 
>> under Cygwin? If so how can I do this? The Linux instructions use ‘virtualenv’.
>> You can use the "Windows subsystem for Linux"
>> (https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux).
>> Michael
>> _______________________________________________
>> LLVM Developers mailing list
>> llvm-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

More information about the llvm-dev mailing list