Skip to content

Commit

Permalink
cmake : fix MSVC compile error C3688 on non-unicode Windows (ggergano…
Browse files Browse the repository at this point in the history
…v#1110)

Co-authored-by: Gang Chen <cg@upiot.net>
  • Loading branch information
goncha and Gang Chen committed Jul 25, 2023
1 parent 7fb5e7f commit 223a420
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Expand Up @@ -240,6 +240,7 @@ if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm" OR ${CMAKE_SYSTEM_PROCESSOR} MATCHES
else()
message(STATUS "x86 detected")
if (MSVC)
add_compile_options(/utf-8)
if(NOT WHISPER_NO_AVX2)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /arch:AVX2")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /arch:AVX2")
Expand Down

0 comments on commit 223a420

Please sign in to comment.