Skip to content

Commit

Permalink
[CMake] Fix the condition to include asan_rtl_x86_64.S in libclang_rt…
Browse files Browse the repository at this point in the history
….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.
  • Loading branch information
MaskRay committed Nov 22, 2023
1 parent 2362813 commit 5717236
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler-rt/lib/asan/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit 5717236

Please sign in to comment.