Misc NDR changes

Force NDR on ARMv7/ARM64

Make GCC/Clang not use anything in the red zone

Compile with `-fno-omit-frame-pointer`
This commit is contained in:
Cacodemon345
2025-03-02 23:14:10 +06:00
parent f290cc0173
commit 6b55b2383a
4 changed files with 39 additions and 13 deletions

View File

@@ -223,6 +223,9 @@ elseif(APPLE AND NOT QT)
COMPONENT Runtime)
endif()
if(NEW_DYNAREC AND (ARCH STREQUAL "x86_64") AND (NOT WIN32))
add_compile_options(-mno-red-zone -fno-omit-frame-pointer)
endif()
# Install the PDB file on Windows builds
if(MSVC)