mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-21 11:01:36 +00:00
- Added USE_SSE2 compile option for gcc.
This commit is contained in:
parent
05b453d2a9
commit
f04a1cb497
1 changed files with 9 additions and 0 deletions
|
@ -266,6 +266,10 @@ if (NOT ZDOOM_USE_SSE2)
|
|||
endif()
|
||||
endif()
|
||||
|
||||
if( ZD_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE )
|
||||
option( USE_SSE2 "Use SSE2 instructions, requires P4 or later CPU." ON)
|
||||
endif()
|
||||
|
||||
if( X64 )
|
||||
set( HAVE_MMX 1 )
|
||||
else( X64 )
|
||||
|
@ -418,6 +422,11 @@ if( ZD_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE )
|
|||
set (CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} -s" )
|
||||
set (CMAKE_EXE_LINKER_FLAGS_MINSIZEREL "${CMAKE_EXE_LINKER_FLAGS_MINSIZEREL} -s" )
|
||||
endif()
|
||||
|
||||
if ( NOT USE_SSE2 )
|
||||
add_definitions( -DNO_SSE )
|
||||
endif()
|
||||
|
||||
endif()
|
||||
|
||||
# Check for thread_local keyword, it's optional at the moment
|
||||
|
|
Loading…
Reference in a new issue