Skip to content

Commit

Permalink
remove /arch:AVX2 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
wjr-z committed Aug 5, 2024
1 parent fde7d0e commit 0e6d752
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,10 @@ if(MSVC)
list(APPEND WJR_CXX_FLAGS /D_HAS_EXCEPTIONS:0)
endif()

list(APPEND WJR_CXX_FLAGS /Wall /Zc:preprocessor /Zc:lambda /EHsc)
list(APPEND WJR_CXX_FLAGS /Wall /Zc:preprocessor /Zc:lambda /EHsc /wd5246 /wd4514 /wd4127)

list(APPEND WJR_CXX_FLAGS_DEBUG /DWJR_DEBUG_LEVEL=${WJR_DEBUG_LEVEL_DEBUG})
list(APPEND WJR_CXX_FLAGS_RELEASE /DWJR_DEBUG_LEVEL=${WJR_DEBUG_LEVEL_RELEASE})

if(WJR_X86)
list(APPEND WJR_CXX_FLAGS /arch:AVX2)
endif()
else()
if(WJR_DISABLE_EXCEPTIONS)
list(APPEND WJR_CXX_FLAGS -fno-exceptions)
Expand Down

0 comments on commit 0e6d752

Please sign in to comment.