mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-27 14:20:59 +00:00
- workaround MSVC 2015 code generation issue, x64 only
With optimization turned on illegal instructions were generated for turbo CVAR handler function https://forum.zdoom.org/viewtopic.php?t=63157
This commit is contained in:
parent
fc249706bc
commit
5dd49d3eb5
1 changed files with 10 additions and 0 deletions
|
@ -223,6 +223,12 @@ EXTERN_CVAR (Int, team)
|
||||||
|
|
||||||
CVAR (Bool, teamplay, false, CVAR_SERVERINFO)
|
CVAR (Bool, teamplay, false, CVAR_SERVERINFO)
|
||||||
|
|
||||||
|
// Workaround for x64 code generation bug in MSVC 2015
|
||||||
|
// Optimized targets contain illegal instructions in the function below
|
||||||
|
#if defined _M_X64 && _MSC_VER < 1910
|
||||||
|
#pragma optimize("", off)
|
||||||
|
#endif // _M_X64 && _MSC_VER < 1910
|
||||||
|
|
||||||
// [RH] Allow turbo setting anytime during game
|
// [RH] Allow turbo setting anytime during game
|
||||||
CUSTOM_CVAR (Float, turbo, 100.f, 0)
|
CUSTOM_CVAR (Float, turbo, 100.f, 0)
|
||||||
{
|
{
|
||||||
|
@ -245,6 +251,10 @@ CUSTOM_CVAR (Float, turbo, 100.f, 0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined _M_X64 && _MSC_VER < 1910
|
||||||
|
#pragma optimize("", on)
|
||||||
|
#endif // _M_X64 && _MSC_VER < 1910
|
||||||
|
|
||||||
CCMD (turnspeeds)
|
CCMD (turnspeeds)
|
||||||
{
|
{
|
||||||
if (argv.argc() == 1)
|
if (argv.argc() == 1)
|
||||||
|
|
Loading…
Reference in a new issue