llvm-project/libcxx
Martin Storsjö c5a74c0890 [libcxx] [test] Simplify get_temp_file_name() for mingw
Use the same codepaths as for MSVC. Mingw-w64 does have the _mktemp_s
function; on Vista and newer, msvcrt.dll does contain the function,
which ends up called. (Same thing in the UCRT.) In older versions of
msvcrt.dll (older than what libc++ supports), mingw-w64 provides a
fallback implementation.

This effectively reverts 23323e25f8 (and
d07e5c23b4). That commit tried to fix
unspecified MinGW build breakage.

This reduces the risk of temp name collisions between processes (when
running multiple tests in parallel); the path returned by
GetTempFileName can easily collide with other similar paths.
(_mktemp_s on the other hand tries to avoid such clashes by using
the process id as part of the uniqueness seed.)

This avoids stray random failures in fstreams tests in mingw configurations.

Differential Revision: https://reviews.llvm.org/D98526
2021-09-08 10:24:34 +03:00
..
benchmarks [test] Migrate -gcc-toolchain with space separator to --gcc-toolchain= 2021-08-20 15:24:58 -07:00
cmake [libc++][format] Add a CMake Unicode option. 2021-09-04 11:55:10 +02:00
docs Mention OpenBSD in the documentation 2021-09-07 07:55:17 -04:00
include [libc++][NFC] Add missing synopsis for node handles 2021-09-07 15:26:33 -04:00
lib [libc++][NFC] Add missing commits to the ABI changelog 2021-07-20 09:19:52 -04:00
src [libc++] Remove some workarounds for unsupported GCC and Clang versions 2021-09-01 10:57:14 -04:00
test [libcxx] [test] Simplify get_temp_file_name() for mingw 2021-09-08 10:24:34 +03:00
utils [libc++] Provide 'buildhost=<platform> feature for the tests. 2021-09-07 11:49:53 -04:00
.clang-format [libcxx][NFC] removes IndentRequires from .clang-format 2021-04-15 19:28:45 +00:00
.gitignore [libcxx] Fix .gitignore to not exclude test directories 2020-03-25 17:52:23 -07:00
CMakeLists.txt [libc++][format] Add a CMake Unicode option. 2021-09-04 11:55:10 +02:00
CREDITS.TXT [libc++] Update credits.txt per coment on D108263 2021-08-20 08:42:36 -04:00
LICENSE.TXT
TODO.TXT [libcxx][docs] Remove completed issues from TODO.TXT 2021-09-01 08:22:23 -04:00
appveyor-reqs-install.cmd
appveyor.yml