mirror of
https://github.com/ong19th/Citron.git
synced 2025-12-12 07:37:00 +00:00
CMake: Enforce x86-64-v2 ISA level across all dependencies
Expand ISA level enforcement to ensure all components, including vcpkg dependencies, are built with x86-64-v2 instruction set. This addresses remaining compatibility issues where dependencies were potentially being built with higher ISA levels. Changes: - Add dedicated x86-64-v2 toolchain file for vcpkg - Set ISA flags for both main project and dependencies - Ensure proper quoting of compiler flags - Configure vcpkg to use consistent toolchain settings The fix requires cleaning both build and vcpkg directories before rebuilding: rm -rf build/ rm -rf vcpkg_installed/ Credits to Alex&Indie for the original ISA compatibility fix. Fixes remaining instances of Linux Compilation
This commit is contained in:
parent
cc897c3f0e
commit
d028ac291c
2 changed files with 16 additions and 6 deletions
2
cmake/x86-64-v2-toolchain.cmake
Normal file
2
cmake/x86-64-v2-toolchain.cmake
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=x86-64-v2" CACHE STRING "C flags")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=x86-64-v2" CACHE STRING "C++ flags")
|
||||
Loading…
Add table
Add a link
Reference in a new issue