diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-01-29 23:31:03 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2023-02-01 17:13:01 +0900 |
commit | ee3176a27afd943247fb6e82e95e2d1efafa4c50 (patch) | |
tree | 801c142838109b505b628157b3980f03a9dd31ea /win32 | |
parent | 941783461f94854d39e78c143ae99c697f7c6b6f (diff) |
Reject VS2022 compiler versions with the known bugs
Diffstat (limited to 'win32')
-rw-r--r-- | win32/Makefile.sub | 2 | ||||
-rw-r--r-- | win32/setup.mak | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub index ff3a43774e..23662346f9 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -728,9 +728,7 @@ $(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 diff --git a/win32/setup.mak b/win32/setup.mak index 2ae4e1cfd5..71796eae9e 100644 --- a/win32/setup.mak +++ b/win32/setup.mak @@ -163,9 +163,10 @@ main(void) } << @( \ - ($(CC) -O2 -DNO_ASSUME [email protected] && .\$@ && $(CC) -O2 [email protected]) && \ - (.\$@ || echo>>$(MAKEFILE) VS2022_FP_BUG=1) \ - ) & $(WIN32DIR:/=\)\rm.bat $@.* + $(CC) -O2 [email protected] && .\$@ || \ + set bug=%ERRORLEVEL% \ + echo This compiler has an optimization bug \ + ) & $(WIN32DIR:/=\)\rm.bat $@.* & exit /b %bug% -version-: nul verconf.mk |