[PR #2651] [MERGED] build: Compile for Sandy Bridge CPU target. #2885

Closed
opened 2026-02-27 22:01:38 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/2651
Author: @squidbus
Created: 3/16/2025
Status: Merged
Merged: 3/18/2025
Merged by: @squidbus

Base: mainHead: cpu-flags


📝 Commits (1)

  • 2d0bbd5 build: Compile for Sandy Bridge CPU target.

📊 Changes

5 files changed (+24 additions, -31 deletions)

View changed files

📝 .gitmodules (+0 -4)
📝 CMakeLists.txt (+10 -9)
📝 externals/CMakeLists.txt (+13 -16)
📝 externals/cryptopp (+1 -1)
externals/cryptoppwin (+0 -1)

📄 Description

  • Set -mcpu=sandybridge to target Sandy Bridge level instruction set, which is roughly what we support for PS4 guest applications when accounting for CPU patches.
  • Disable AVX2 for CryptoPP for similar reasons; this needs its own flag set as the compile options we supply don't affect its try_compile support check.
  • Move CryptoPP to source build on Windows, so that updated flags will apply.
  • Minor improvement to architecture detection to account for if CMAKE_SYSTEM_PROCESSOR is missing for some reason.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/2651 **Author:** [@squidbus](https://github.com/squidbus) **Created:** 3/16/2025 **Status:** ✅ Merged **Merged:** 3/18/2025 **Merged by:** [@squidbus](https://github.com/squidbus) **Base:** `main` ← **Head:** `cpu-flags` --- ### 📝 Commits (1) - [`2d0bbd5`](https://github.com/shadps4-emu/shadPS4/commit/2d0bbd5b4c4a53f40e5fb00974f7a793b634b057) build: Compile for Sandy Bridge CPU target. ### 📊 Changes **5 files changed** (+24 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `.gitmodules` (+0 -4) 📝 `CMakeLists.txt` (+10 -9) 📝 `externals/CMakeLists.txt` (+13 -16) 📝 `externals/cryptopp` (+1 -1) ➖ `externals/cryptoppwin` (+0 -1) </details> ### 📄 Description * Set `-mcpu=sandybridge` to target Sandy Bridge level instruction set, which is roughly what we support for PS4 guest applications when accounting for CPU patches. * Disable AVX2 for CryptoPP for similar reasons; this needs its own flag set as the compile options we supply don't affect its `try_compile` support check. * Move CryptoPP to source build on Windows, so that updated flags will apply. * Minor improvement to architecture detection to account for if `CMAKE_SYSTEM_PROCESSOR` is missing for some reason. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:01:38 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#2885
No description provided.