Skip to content

Commit

Permalink
Add workarounds for LLVM-113633.
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanTLavavej committed Oct 25, 2024
1 parent f11e25b commit 60bd1de
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/std/tests/P0088R3_variant/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@

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

#ifndef __clang__ // TRANSITION, LLVM-113633
#define __SIZEOF_DOUBLE__ 8
#define __SIZEOF_LONG_DOUBLE__ 8
#endif // ^^^ workaround ^^^

#define _SILENCE_CXX20_VOLATILE_DEPRECATION_WARNING
#define _LIBCXX_IN_DEVCRT
#include <msvc_stdlib_force_include.h> // Must precede any other libc++ headers
Expand Down
5 changes: 5 additions & 0 deletions tests/std/tests/P0088R3_variant_msvc/test.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
// Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifndef __clang__ // TRANSITION, LLVM-113633
#define __SIZEOF_DOUBLE__ 8
#define __SIZEOF_LONG_DOUBLE__ 8
#endif // ^^^ workaround ^^^

#define _SILENCE_CXX23_ALIGNED_UNION_DEPRECATION_WARNING
#define _LIBCXX_IN_DEVCRT
#include <msvc_stdlib_force_include.h> // Must precede any other libc++ headers
Expand Down
5 changes: 5 additions & 0 deletions tests/std/tests/P0220R1_any/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
// Yes, this is an awkward hand process; notably the required headers can change without notice. We should investigate
// running the libc++ tests directly in all of our configurations so we needn't replicate this subset of files.

#ifndef __clang__ // TRANSITION, LLVM-113633
#define __SIZEOF_DOUBLE__ 8
#define __SIZEOF_LONG_DOUBLE__ 8
#endif // ^^^ workaround ^^^

#define _LIBCXX_IN_DEVCRT
#include <msvc_stdlib_force_include.h> // Must precede any other libc++ headers
#include <stdlib.h>
Expand Down
5 changes: 5 additions & 0 deletions tests/std/tests/P0220R1_optional/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
// Yes, this is an awkward hand process; notably the required headers can change without notice. We should investigate
// running the libc++ tests directly in all of our configurations so we needn't replicate this subset of files.

#ifndef __clang__ // TRANSITION, LLVM-113633
#define __SIZEOF_DOUBLE__ 8
#define __SIZEOF_LONG_DOUBLE__ 8
#endif // ^^^ workaround ^^^

#define _LIBCXX_IN_DEVCRT
#include <msvc_stdlib_force_include.h> // Must precede any other libc++ headers
#include <stdlib.h>
Expand Down

0 comments on commit 60bd1de

Please sign in to comment.