Skip to content

Commit

Permalink
Require AVX2 for vkdoom and tell the compiler to use it (no point in …
Browse files Browse the repository at this point in the history
…supporting CPU's older than Haswell as it predates Vulkan)
  • Loading branch information
dpjudas committed Jan 29, 2025
1 parent bd4a4a8 commit b04ded6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b04ded6

Please sign in to comment.