From b4de79720c8484d04ac373a6353fa5363d473a3d Mon Sep 17 00:00:00 2001 From: "Skyth (Asilkan)" <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Thu, 23 Jan 2025 15:18:19 +0300 Subject: [PATCH] Remove lzcnt instruction usage. (#151) --- CMakeLists.txt | 5 +++++ UnleashedRecomp/CMakeLists.txt | 2 -- UnleashedRecompLib/CMakeLists.txt | 2 -- tools/XenonRecomp | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 141f3764..9032d762 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,6 +18,11 @@ endif() set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") +# Target Sandy Bridge for all projects +add_compile_options( + -march=sandybridge +) + add_subdirectory(${UNLEASHED_RECOMP_THIRDPARTY_ROOT}) add_subdirectory(${UNLEASHED_RECOMP_TOOLS_ROOT}) diff --git a/UnleashedRecomp/CMakeLists.txt b/UnleashedRecomp/CMakeLists.txt index 011244b8..2eed3598 100644 --- a/UnleashedRecomp/CMakeLists.txt +++ b/UnleashedRecomp/CMakeLists.txt @@ -39,9 +39,7 @@ function(BIN2C) endfunction() add_compile_options( - -march=sandybridge -fno-strict-aliasing - -Wno-switch -Wno-unused-function -Wno-unused-variable diff --git a/UnleashedRecompLib/CMakeLists.txt b/UnleashedRecompLib/CMakeLists.txt index 6b92a236..ac774930 100644 --- a/UnleashedRecompLib/CMakeLists.txt +++ b/UnleashedRecompLib/CMakeLists.txt @@ -1,8 +1,6 @@ project("UnleashedRecompLib") add_compile_options( - -march=sandybridge - -mlzcnt -fno-strict-aliasing ) diff --git a/tools/XenonRecomp b/tools/XenonRecomp index 87e35090..73b75e19 160000 --- a/tools/XenonRecomp +++ b/tools/XenonRecomp @@ -1 +1 @@ -Subproject commit 87e350906ba41cb01aedcc6cb3a94aac24d75251 +Subproject commit 73b75e197a6b9e8c1ad693f926c044d0f8f23a0b