Skip to content

Commit 80ae168

Browse files
authored
[libcxx] [doc] Document the supported target versions of Windows (#167845)
The llvm-mingw toolchains defaults to `_WIN32_WINNT=0x601`, so this configuration is covered by our CI build matrix.
1 parent 9822905 commit 80ae168

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

libcxx/docs/VendorDocumentation.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,12 @@ newer (19.14) is required.
376376

377377
Libc++ also supports being built with clang targeting MinGW environments.
378378

379+
Libc++ supports Windows 7 or newer. However, the minimum runtime version
380+
of the build is determined by the ``_WIN32_WINNT`` define, which in many
381+
SDKs defaults to the latest version. To build a version that runs on an
382+
older version, define e.g. ``_WIN32_WINNT=0x601`` while building libc++,
383+
to target Windows 7.
384+
379385
CMake + Visual Studio
380386
---------------------
381387

libcxx/docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ macOS 10.13+ i386, x86_64, arm64
147147
FreeBSD 12+ i386, x86_64, arm
148148
Linux i386, x86_64, arm, arm64 Only glibc-2.24 and later and no other libc is officially supported
149149
Android 5.0+ i386, x86_64, arm, arm64
150-
Windows i386, x86_64, arm64 Both MSVC and MinGW style environments, ABI in MSVC environments is :doc:`unstable <DesignDocs/ABIVersioning>`
150+
Windows 7+ i386, x86_64, arm64 Both MSVC and MinGW style environments, ABI in MSVC environments is :doc:`unstable <DesignDocs/ABIVersioning>`
151151
AIX 7.2TL5+ powerpc, powerpc64
152152
Embedded (picolibc) arm
153153
===================== ========================= ============================

0 commit comments

Comments
 (0)