[all-commits] [llvm/llvm-project] 99fe38: [flang][runtime] Remove dependency on C++ <mutex> ...

Markus Mützel via All-commits all-commits at lists.llvm.org
Fri Jun 10 04:29:14 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 99fe38a13a2d111fbb0b7848415d4ba3cab11437
      https://github.com/llvm/llvm-project/commit/99fe38a13a2d111fbb0b7848415d4ba3cab11437
  Author: Markus Mützel <markus.muetzel at gmx.de>
  Date:   2022-06-10 (Fri, 10 Jun 2022)

  Changed paths:
    M flang/runtime/lock.h

  Log Message:
  -----------
  [flang][runtime] Remove dependency on C++ <mutex> on Windows

The implementation of the Lock class on Windows currently uses C++
mutexes. That introduces a dependency on the C++ runtime on that
platform.

Use a Windows CriticalSection instead of a std::mutex to avoid that
dependency.

This works for me with MinGW (tested in a CLANG64 environment of MSYS2).

See also D126291.

Differential Revision: https://reviews.llvm.org/D127316




More information about the All-commits mailing list