[all-commits] [llvm/llvm-project] 360411: [flang][MSVC] Fix building with `/permissive-` flag

مهدي شينون (Mehdi Chinoune) via All-commits all-commits at lists.llvm.org
Tue May 24 21:36:24 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 360411957b6f40f50b35097b7abedd91250f2434
      https://github.com/llvm/llvm-project/commit/360411957b6f40f50b35097b7abedd91250f2434
  Author: Mehdi Chinoune <mehdi.chinoune at hotmail.com>
  Date:   2022-05-24 (Tue, 24 May 2022)

  Changed paths:
    M flang/runtime/time-intrinsic.cpp

  Log Message:
  -----------
  [flang][MSVC] Fix building with `/permissive-` flag

CLOCK_REALTIME is POSIX defined and never available with MSVC, even without /permissive-.
The difference is that the template is never instantiated and the compiler ignores the undefined identifier.

Reviewed By: Meinersbur

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




More information about the All-commits mailing list