diff options
author | Zephyron <zephyron@citron-emu.org> | 2025-01-13 17:57:17 +1000 |
---|---|---|
committer | Zephyron <zephyron@citron-emu.org> | 2025-01-13 17:57:17 +1000 |
commit | cc897c3f0eac9fb77657a97abf7e9fec6c144b9f (patch) | |
tree | 72ba885b025ade62d95877e4eaf6314c108ef85a /src/core/memory.h | |
parent | cce4abbb0b0c5902939a05d79016b2de672b9457 (diff) |
CMake: Force x86-64-v2 instruction set for better compatibility
Enforce x86-64-v2 instruction set level to prevent compatibility issues
on systems that default to higher ISA levels (v3/v4). This fixes crashes
reported on certain Linux distributions like CachyOS that force higher
instruction set levels by default.
The fix:
- Sets -march=x86-64-v2 for both C and CXX flags
- Adds compile options to ensure system defaults don't override
- Explicitly disables v3 and v4 instruction sets
- Only applies to x86_64 architectures
Credits to Alex&Indie for identifying the ISA level compatibility
issue.
Fixes: Linux Compilation.
Diffstat (limited to 'src/core/memory.h')
0 files changed, 0 insertions, 0 deletions