Add workaround for Clang bug on Windows MSVC

This commit is contained in:
Frederik Seiffert 2021-03-28 09:03:34 +02:00 committed by Frederik Seiffert
parent 796aa5742e
commit 93c893bcde
2 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2021-03-28 Frederik Seiffert <frederik@algoriddim.com>
* TestFramework/Testing.h:
Add workaround for Clang bug on Windows MSVC when tests contain no
Objective-C constructs.
2021-03-21 Ivan Vucica <ivan@vucica.net>
* ANNOUNCE:

View file

@ -33,6 +33,13 @@
#import <Foundation/NSRegularExpression.h>
#import <Foundation/NSString.h>
#if defined(__OBJC__) && defined(__clang__) && defined(_MSC_VER)
/* Work around Clang bug on Windows MSVC when tests contain no
* Objective-C constructs: https://bugs.llvm.org/show_bug.cgi?id=49681
*/
id __work_around_clang_bug = @"__unused__";
#endif
/* A flag indicating that the testsuite is currently processing tests
* which are actually not expected to pass, but where we hope someone
* might have committed a bugfix.