Skip to content

Commit

Permalink
Don't enable ASAN for ARM64
Browse files Browse the repository at this point in the history
  • Loading branch information
equeim committed Dec 24, 2024
1 parent e94a560 commit fc3ca8b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmake/CommonOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ function(set_common_options_on_targets)
/w45204
)
if (TREMOTESF_ASAN)
list(APPEND common_compile_options /fsanitize=address /D_DISABLE_VECTOR_ANNOTATION /D_DISABLE_STRING_ANNOTATION)
if (VCPKG_TARGET_TRIPLET MATCHES "^arm64.*")
message(WARNING "Ignoring TREMOTESF_ASAN=ON for ARM64, it is not supported")
else()
list(APPEND common_compile_options /fsanitize=address /D_DISABLE_VECTOR_ANNOTATION /D_DISABLE_STRING_ANNOTATION)
endif()
endif()
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
list(TRANSFORM gcc_style_warnings PREPEND "/clang:")
Expand Down

0 comments on commit fc3ca8b

Please sign in to comment.