Skip to content

Commit 5717236

Browse files
committed
[CMake] Fix the condition to include asan_rtl_x86_64.S in libclang_rt.asan_static.a
In a build supporting both i386/x86_64, the condition added by https://reviews.llvm.org/D149957 caused asan_rtl_x86_64.S not to be built. Fix it.
1 parent 2362813 commit 5717236

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/asan/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ set(ASAN_STATIC_SOURCES
4646
asan_rtl_static.cpp
4747
)
4848

49-
if (ASAN_SUPPORTED_ARCH STREQUAL "x86_64" AND NOT WIN32 AND NOT APPLE)
49+
if ("x86_64" IN_LIST ASAN_SUPPORTED_ARCH AND NOT WIN32 AND NOT APPLE)
5050
list(APPEND ASAN_STATIC_SOURCES
5151
asan_rtl_x86_64.S
5252
)

0 commit comments

Comments
 (0)