[libcxx-commits] [PATCH] D103398: [libcxx] Define LIBCPP_HAS_TIMESPEC_GET for MSVC configurations

Martin Storsjö via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon May 31 12:13:48 PDT 2021


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc8644ae1e98c: [libcxx] Define LIBCPP_HAS_TIMESPEC_GET for MSVC configurations (authored by mstorsjo).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D103398/new/

https://reviews.llvm.org/D103398

Files:
  libcxx/include/__config
  libcxx/test/libcxx/language.support/has_timespec_get.compile.pass.cpp
  libcxx/test/std/language.support/support.runtime/ctime.pass.cpp
  libcxx/test/std/utilities/time/date.time/ctime.pass.cpp


Index: libcxx/test/std/utilities/time/date.time/ctime.pass.cpp
===================================================================
--- libcxx/test/std/utilities/time/date.time/ctime.pass.cpp
+++ libcxx/test/std/utilities/time/date.time/ctime.pass.cpp
@@ -6,8 +6,6 @@
 //
 //===----------------------------------------------------------------------===//
 
-// XFAIL: LIBCXX-WINDOWS-FIXME
-
 #include <ctime>
 #include <type_traits>
 
Index: libcxx/test/std/language.support/support.runtime/ctime.pass.cpp
===================================================================
--- libcxx/test/std/language.support/support.runtime/ctime.pass.cpp
+++ libcxx/test/std/language.support/support.runtime/ctime.pass.cpp
@@ -8,8 +8,6 @@
 
 // test <ctime>
 
-// XFAIL: LIBCXX-WINDOWS-FIXME
-
 #include <ctime>
 #include <type_traits>
 #include "test_macros.h"
Index: libcxx/test/libcxx/language.support/has_timespec_get.compile.pass.cpp
===================================================================
--- libcxx/test/libcxx/language.support/has_timespec_get.compile.pass.cpp
+++ libcxx/test/libcxx/language.support/has_timespec_get.compile.pass.cpp
@@ -8,8 +8,6 @@
 
 // UNSUPPORTED: c++03, c++11, c++14
 
-// XFAIL: LIBCXX-WINDOWS-FIXME
-
 // Make sure TEST_HAS_TIMESPEC_GET (defined by the test suite) and
 // _LIBCPP_HAS_TIMESPEC_GET (defined by libc++) stay in sync.
 
Index: libcxx/include/__config
===================================================================
--- libcxx/include/__config
+++ libcxx/include/__config
@@ -390,6 +390,9 @@
 #      define _LIBCPP_HAS_QUICK_EXIT
 #      define _LIBCPP_HAS_TIMESPEC_GET
 #    endif
+#  elif defined(_LIBCPP_MSVCRT)
+     // Using Microsoft's C Runtime library, not MinGW
+#    define _LIBCPP_HAS_TIMESPEC_GET
 #  elif defined(__APPLE__)
      // timespec_get and aligned_alloc were introduced in macOS 10.15 and
      // aligned releases


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103398.348847.patch
Type: text/x-patch
Size: 1885 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210531/acd0f1f8/attachment.bin>


More information about the libcxx-commits mailing list