Require AVX2 for vkdoom and tell the compiler to use it (no point in supporting CPU's older than Haswell as it predates Vulkan)
This commit is contained in:
parent
bd4a4a827c
commit
b04ded680c
1 changed files with 5 additions and 1 deletions
|
|
@ -184,7 +184,11 @@ endif()
|
|||
# Set up flags for MSVC
|
||||
if (MSVC)
|
||||
# /we4715 turns "'function' : not all control paths return a value" as it should be!!!!!!!!one1!
|
||||
set( CMAKE_CXX_FLAGS "/MP /we4715 ${CMAKE_CXX_FLAGS}" )
|
||||
set(CMAKE_CXX_FLAGS "/MP /we4715 ${CMAKE_CXX_FLAGS}")
|
||||
if(X64)
|
||||
# CPUs that don't support AVX2 are going to be too slow to run this properly anyway
|
||||
set(CMAKE_CXX_FLAGS "/arch:AVX2 ${CMAKE_CXX_FLAGS}")
|
||||
endif(X64)
|
||||
endif (MSVC)
|
||||
|
||||
# Set up flags for GCC
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue