Skip to content

Commit

Permalink
cmake : support AVX2 in Windows better (ggerganov#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-Bell authored Jan 6, 2023
1 parent fbd8da6 commit 499563f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ else()
if (MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /arch:AVX2")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /arch:AVX2")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /arch:AVX2")
else()
if (EMSCRIPTEN)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread")
Expand Down

0 comments on commit 499563f

Please sign in to comment.