[libcxx-commits] [PATCH] D97075: [libcxx] Enable filesystem by default for mingw targets
Martin Storsjö via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Feb 19 11:53:11 PST 2021
mstorsjo created this revision.
mstorsjo added reviewers: ldionne, libc++.
Herald added a subscriber: mgorny.
mstorsjo requested review of this revision.
Herald added a project: libc++.
Herald added 1 blocking reviewer(s): libc++.
This feature can be built successfully for windows now, and should be fairly complete. However, the helper functions for `__int128_t` aren't available in MSVC configurations, so don't enable it by default there yet. (See https://reviews.llvm.org/D91139 for discussion on how to proceed with things in MSVC environments.)
rG LLVM Github Monorepo
@@ -93,7 +93,11 @@
option(LIBCXX_ENABLE_STATIC "Build libc++ as a static library." ON)
option(LIBCXX_ENABLE_EXPERIMENTAL_LIBRARY "Build libc++experimental.a" ON)
+if (WIN32 AND NOT MINGW)
+ # Filesystem is buildable for windows, but it requires __int128 helper
+ # functions, that currently are provided by libgcc or compiler_rt builtins.
+ # These are available in MinGW environments, but not currently in MSVC
+ # environments.
option(LIBCXX_ENABLE_FILESYSTEM "Build filesystem as part of the main libc++ library"
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 766 bytes
Desc: not available
More information about the libcxx-commits