Skip to content

Commit fc3ca8b

Browse files
committed
Don't enable ASAN for ARM64
1 parent e94a560 commit fc3ca8b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmake/CommonOptions.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,11 @@ function(set_common_options_on_targets)
110110
/w45204
111111
)
112112
if (TREMOTESF_ASAN)
113-
list(APPEND common_compile_options /fsanitize=address /D_DISABLE_VECTOR_ANNOTATION /D_DISABLE_STRING_ANNOTATION)
113+
if (VCPKG_TARGET_TRIPLET MATCHES "^arm64.*")
114+
message(WARNING "Ignoring TREMOTESF_ASAN=ON for ARM64, it is not supported")
115+
else()
116+
list(APPEND common_compile_options /fsanitize=address /D_DISABLE_VECTOR_ANNOTATION /D_DISABLE_STRING_ANNOTATION)
117+
endif()
114118
endif()
115119
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
116120
list(TRANSFORM gcc_style_warnings PREPEND "/clang:")

0 commit comments

Comments
 (0)