[Openmp-commits] [PATCH] D59451: Fix gettid warnings and one test on FreeBSD

Joachim Protze via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Sat Mar 16 11:56:41 PDT 2019

protze.joachim added a comment.

This code does not directly use pthreads, but uses C++11 threads.
Why does the compiler not link the necessary threading library, when using C++11 threads? I suggest to define a lit macro like `%cxx11_thread` which sets the necessary flags. I guess, that on Linux -fopenmp already implies linking the pthread library.

Searching for other use of pthread in the tests, I found


These tests use -lpthread (should this also be replaced by -pthread?)
Furthermore, one of them include omp_testsuite.h, which is supposed to provide a Windows compatible implementation of the pthread-create/join functions, but the testcase still links the pthread library. Does anyone actually run the tests on Windows?

  rOMP OpenMP



More information about the Openmp-commits mailing list