Browse Source

fix ci woa test, disable woa svml optimization (#5846)

tags/20241226
nihui GitHub 1 year ago
parent
commit
a024d801fa
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/CMakeLists.txt

+ 5
- 0
src/CMakeLists.txt View File

@@ -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)


Loading…
Cancel
Save