Skip to content

Commit

Permalink
Hopeful fix for MinGW unaligned vector access with AVX+
Browse files Browse the repository at this point in the history
  • Loading branch information
Auburn committed Apr 27, 2024
1 parent 43018ab commit 587d203
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions dispatch/cmake/ClassSIMD.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,14 @@ function(fastsimd_create_dispatch_library simd_library_name)
set_target_properties(${simd_library_name} PROPERTIES POSITION_INDEPENDENT_CODE ON)
endif()

if(CMAKE_COMPILER_IS_GNUCC)
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set_target_properties(${simd_library_name} PROPERTIES COMPILE_FLAGS "-Wno-ignored-attributes")
endif()


if(MINGW)
target_compile_options(${simd_library_name} PRIVATE -Wa,-muse-unaligned-vector-move)
endif()

if(fastsimd_create_dispatch_library_RELAXED)
target_compile_definitions(${simd_library_name} PUBLIC FASTSIMD_IS_RELAXED=1)
endif()
Expand Down

0 comments on commit 587d203

Please sign in to comment.