Skip to content

Commit

Permalink
fix ci woa test, disable woa svml optimization (#5846)
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui authored Dec 24, 2024
1 parent 66cd40e commit a024d80
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,11 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC" OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang
target_compile_options(ncnn PRIVATE /fp:fast)
endif()

if(NCNN_TARGET_ARCH STREQUAL "arm")
# disable msvc svml optimization on arm target as it produces wrong result
target_compile_options(ncnn PRIVATE /d2Qvec-mathlib-)
endif()

if(NCNN_SHARED_LIB)
# msvc argues about stl string and vector uses in exported functions
target_compile_options(ncnn PRIVATE /wd4251)
Expand Down

0 comments on commit a024d80

Please sign in to comment.