Skip to content

build: enforce frame pointer preservation and enable stack security in release modes - #352

Merged
CanerKaraca23 merged 1 commit into
user-grinch:mainfrom
CanerKaraca23:build/safe-release-flags
Sep 22, 2026
Merged

CanerKaraca23 merged 1 commit into
user-grinch:mainfrom
CanerKaraca23:build/safe-release-flags

Conversation

@CanerKaraca23

Copy link
Copy Markdown
Collaborator

Summary

Fixes release-only crashes caused by unsafe MSVC compiler flags that destabilize the x86 call stack when interacting with GTA SA's engine and third-party mods.

Changes

  • /Oy → /Oy-: Preserves EBP frame pointer in release builds, ensuring stable stack frames for GTA SA hooks and mod interop.
  • /GS- removed: Re-enables stack buffer security checks (default /GS).
  • /fp:fast + /fp:except- → /fp:precise: Uses IEEE 754 compliant float math for accurate 3D vector, angle, and physics calculations.

@CanerKaraca23
CanerKaraca23 merged commit ea368a2 into user-grinch:main Sep 22, 2026
1 check passed
@CanerKaraca23
CanerKaraca23 deleted the build/safe-release-flags branch September 22, 2026 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant