[all-commits] [llvm/llvm-project] 3fc0d9: [libc++][test] Make macro detection more friendly ...
A. Jiang via All-commits
all-commits at lists.llvm.org
Fri Oct 25 22:47:20 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3fc0d94ce57de2d0841e77c8fda7feef2923c4e0
https://github.com/llvm/llvm-project/commit/3fc0d94ce57de2d0841e77c8fda7feef2923c4e0
Author: A. Jiang <de34 at live.cn>
Date: 2024-10-26 (Sat, 26 Oct 2024)
Changed paths:
M libcxx/test/support/test_macros.h
Log Message:
-----------
[libc++][test] Make macro detection more friendly to MSVC (#113633)
MSVC STL's test suite is a bit nervous about replacing non-macro-defined
identifiers with `0` (see also
https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-4-c4668?view=msvc-170).
On MSVC (and MS-compatible mode of other compilers), `long double` has
the same format (IEEE-754 binary64) as `double`, so it should be OK to
define `TEST_LONG_DOUBLE_IS_DOUBLE` when `_MSC_VER` is defined. Such
detection should be performed first.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list