mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-22 02:00:11 +00:00
sse2 again? earth to CI
This commit is contained in:
parent
046564eece
commit
6aee524ace
1 changed files with 6 additions and 2 deletions
|
|
@ -1,3 +1,5 @@
|
|||
include(CheckCXXCompilerFlag)
|
||||
|
||||
add_executable(SRB2SDL2 MACOSX_BUNDLE WIN32
|
||||
comptime.c
|
||||
cxxutil.hpp
|
||||
|
|
@ -326,8 +328,10 @@ if("${CMAKE_SYSTEM_NAME}" MATCHES "Darwin")
|
|||
endif()
|
||||
|
||||
# Enable SSE2 for IA-32.
|
||||
if(CMAKE_CXX_COMPILER_ARCHITECTURE_ID MATCHES "i[3-6]86")
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
|
||||
check_cxx_compiler_flag("-msse2" has_sse2)
|
||||
if(SRB2_SYSTEM_BITS EQUAL 32 AND has_sse2)
|
||||
message(STATUS "Using sse2 for IA-32")
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang|AppleClang)")
|
||||
target_compile_options(SRB2SDL2 PRIVATE "-msse2")
|
||||
elseif(MSVC)
|
||||
target_compile_options(SRB2SDL2 PRIVATE "/arch:SSE2")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue