Skip to content

Commit 60bd1de

Browse files
Add workarounds for LLVM-113633.
1 parent f11e25b commit 60bd1de

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

tests/std/tests/P0088R3_variant/test.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232

3333
#if !defined(_PREFAST_) || !defined(_M_IX86) // TRANSITION, VSO-1639191
3434

35+
#ifndef __clang__ // TRANSITION, LLVM-113633
36+
#define __SIZEOF_DOUBLE__ 8
37+
#define __SIZEOF_LONG_DOUBLE__ 8
38+
#endif // ^^^ workaround ^^^
39+
3540
#define _SILENCE_CXX20_VOLATILE_DEPRECATION_WARNING
3641
#define _LIBCXX_IN_DEVCRT
3742
#include <msvc_stdlib_force_include.h> // Must precede any other libc++ headers

tests/std/tests/P0088R3_variant_msvc/test.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
// Copyright (c) Microsoft Corporation.
22
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
33

4+
#ifndef __clang__ // TRANSITION, LLVM-113633
5+
#define __SIZEOF_DOUBLE__ 8
6+
#define __SIZEOF_LONG_DOUBLE__ 8
7+
#endif // ^^^ workaround ^^^
8+
49
#define _SILENCE_CXX23_ALIGNED_UNION_DEPRECATION_WARNING
510
#define _LIBCXX_IN_DEVCRT
611
#include <msvc_stdlib_force_include.h> // Must precede any other libc++ headers

tests/std/tests/P0220R1_any/test.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626
// Yes, this is an awkward hand process; notably the required headers can change without notice. We should investigate
2727
// running the libc++ tests directly in all of our configurations so we needn't replicate this subset of files.
2828

29+
#ifndef __clang__ // TRANSITION, LLVM-113633
30+
#define __SIZEOF_DOUBLE__ 8
31+
#define __SIZEOF_LONG_DOUBLE__ 8
32+
#endif // ^^^ workaround ^^^
33+
2934
#define _LIBCXX_IN_DEVCRT
3035
#include <msvc_stdlib_force_include.h> // Must precede any other libc++ headers
3136
#include <stdlib.h>

tests/std/tests/P0220R1_optional/test.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
// Yes, this is an awkward hand process; notably the required headers can change without notice. We should investigate
2929
// running the libc++ tests directly in all of our configurations so we needn't replicate this subset of files.
3030

31+
#ifndef __clang__ // TRANSITION, LLVM-113633
32+
#define __SIZEOF_DOUBLE__ 8
33+
#define __SIZEOF_LONG_DOUBLE__ 8
34+
#endif // ^^^ workaround ^^^
35+
3136
#define _LIBCXX_IN_DEVCRT
3237
#include <msvc_stdlib_force_include.h> // Must precede any other libc++ headers
3338
#include <stdlib.h>

0 commit comments

Comments
 (0)