[libcxx-commits] [libcxx] 99fc4a6 - [libcxx] Enable filesystem by default for mingw targets
Martin Storsjö via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Feb 19 15:09:34 PST 2021
Author: Martin Storsjö
Date: 2021-02-20T01:09:10+02:00
New Revision: 99fc4a65847a7020ae328e42a67e80cc29c1e762
URL: https://github.com/llvm/llvm-project/commit/99fc4a65847a7020ae328e42a67e80cc29c1e762
DIFF: https://github.com/llvm/llvm-project/commit/99fc4a65847a7020ae328e42a67e80cc29c1e762.diff
LOG: [libcxx] Enable filesystem by default for mingw targets
This feature can be built successfully for windows now. 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.)
Differential Revision: https://reviews.llvm.org/D97075
Added:
Modified:
libcxx/CMakeLists.txt
Removed:
################################################################################
diff --git a/libcxx/CMakeLists.txt b/libcxx/CMakeLists.txt
index 1144f4568d84..3599bcde6d66 100644
--- a/libcxx/CMakeLists.txt
+++ b/libcxx/CMakeLists.txt
@@ -90,7 +90,11 @@ option(LIBCXX_ENABLE_SHARED "Build libc++ as a shared library." ON)
option(LIBCXX_ENABLE_STATIC "Build libc++ as a static library." ON)
option(LIBCXX_ENABLE_EXPERIMENTAL_LIBRARY "Build libc++experimental.a" ON)
set(ENABLE_FILESYSTEM_DEFAULT ON)
-if (WIN32)
+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.
set(ENABLE_FILESYSTEM_DEFAULT OFF)
endif()
option(LIBCXX_ENABLE_FILESYSTEM "Build filesystem as part of the main libc++ library"
More information about the libcxx-commits
mailing list