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