diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-02-12 23:29:19 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-02-20 20:39:48 +0900 |
commit | ed8776f96034b245b5418d4817d0ebda3db24198 (patch) | |
tree | 7b3482ad52f1ec8aecd4f071186f41bd2ad69bfa /win32/Makefile.sub | |
parent | 32af1a3b5e8bb7b5ffc3c7f97edb8c0b74f016ae (diff) |
[MSWin] Tentative measure for a bug of VS2022 [Misc #18362]
Disable the use of `__assume()`, when combinations of `isnan()`,
`isinf()` and `__assume()` will be wrongly optimized due to the
bug of VS2022.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5579
Diffstat (limited to 'win32/Makefile.sub')
-rw-r--r-- | win32/Makefile.sub | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub index 2b4bebac48..47a3dcfd5e 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -702,7 +702,9 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub #define ALWAYS_INLINE(x) __forceinline x #define WARN_UNUSED_RESULT(x) x #define MAYBE_UNUSED(x) x +!if !defined(VS2022_FP_BUG) #define HAVE___ASSUME 1 +!endif #define FUNC_STDCALL(x) __stdcall x #define FUNC_CDECL(x) __cdecl x #define FUNC_FASTCALL(x) __fastcall x |