diff --git a/compiler-rt/lib/asan/CMakeLists.txt b/compiler-rt/lib/asan/CMakeLists.txt --- a/compiler-rt/lib/asan/CMakeLists.txt +++ b/compiler-rt/lib/asan/CMakeLists.txt @@ -46,7 +46,7 @@ asan_rtl_static.cpp ) -if (NOT WIN32 AND NOT APPLE) +if (ASAN_SUPPORTED_ARCH STREQUAL "x86_64" AND NOT WIN32 AND NOT APPLE) list(APPEND ASAN_STATIC_SOURCES asan_rtl_x86_64.S )