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:
Magnus Norddahl 2025-01-29 19:40:07 +01:00
commit b04ded680c

View file

@ -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