CMake: Add LSE2 option

This commit is contained in:
Malcolm
2026-09-30 13:46:49 +03:00
committed by Elad
parent be39b3b9f0
commit f0d2485981
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -29,6 +29,7 @@ else()
endif()
option(USE_NATIVE_INSTRUCTIONS "USE_NATIVE_INSTRUCTIONS makes rpcs3 compile with -march=native, which is useful for local builds, but not good for packages." ON)
option(USE_ARM_LSE2 "Compile with LSE2 instructions" OFF)
option(WITH_LLVM "Enable usage of LLVM library" ON)
option(BUILD_LLVM "Build LLVM from git submodule" OFF)
option(STATIC_LINK_LLVM "Link against LLVM statically. This will get set to ON if you build LLVM from the submodule." OFF)
+4
View File
@@ -1,5 +1,9 @@
# Check and configure compiler options for RPCS3
if(USE_ARM_LSE2)
add_compile_definitions(ARM_FEATURE_LSE2=1)
endif()
if(MSVC)
add_compile_options(/Zc:throwingNew- /constexpr:steps16777216)
add_compile_definitions(