[LLVMdev] LLVM_ENABLE_THREADING=ON by default in Windows, is this right?

Reid Kleckner rnk at google.com
Mon Apr 6 13:14:54 PDT 2015


In general, LLVM_ENABLE_THREADS should default to 'ON' and it is supported.

I can reproduce your test failures by running IRTests.exe directly, but not
when using lit or the 'check' target. I think this failure slipped in
silently because of a bug in lit's interaction with gtest. This patch makes
the failure visible in the suite:

--- a/utils/lit/lit/formats/googletest.py
+++ b/utils/lit/lit/formats/googletest.py
@@ -95,7 +95,7 @@ class GoogleTest(TestFormat):
             # Handle GTest parametrized and typed tests, whose name
includes
             # some '/'s.
             testPath, namePrefix = os.path.split(testPath)
-            testName = os.path.join(namePrefix, testName)
+            testName = namePrefix + '/' + testName

         cmd = [testPath, '--gtest_filter=' + testName]
         if litConfig.useValgrind:

I'm running the suite with this now to see if it uncovers other Windows
specific failures. I plan to disable these tests on Windows until we can
figure out what's up.

On Sat, Apr 4, 2015 at 4:06 PM, David Bakin <davidbak at gmail.com> wrote:

> I'm not sure what LLVM_ENABLE_THREADS impacts - whether it is LLVM
> executables themselves or LLVM-generated code - but it seems to be on by
> default on the Windows CMake build (I'm building LLVM+Clang at trunk head
> using CMake/Visual Studio 2013 Win64).
>
> But 3 unit tests in IR, which are compiled only if define
> LLVM_ENABLE_THREADS is set, fail if LLVM_ENABLE_THEADS=ON:
> ValueMapTest/{0,1,2}.LocksMutex.
>
> Should LLVM_ENABLE_THREADS be OFF for the Windows Visual Studio builds?
> Or something else?  Should something about this switch be documented at the
> "Building LLVM With CMake" page, e.g., here
> http://llvm.org/docs/CMake.html#llvm-specific-variables ?
>
> Thanks -- David
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150406/1dd613af/attachment.html>


More information about the llvm-dev mailing list