Merge pull request #12894 from xXPBSXx/fix/asan-skip-asan-lib

fix(build): do not build libSceAddressSanitizer in an ASan or TSan build
This commit is contained in:
Dean authored and GitHub committed 2026-11-02 00:24:15 +13:00
commit ffb95fdf8a
1 file changed
+3
+3
View File
@@ -160,6 +160,9 @@ set(PATCHED_OUTPUTS ${LIBC_PATCHED})
foreach(LIB_DIR ${LIBS_DIRS})
if(IS_DIRECTORY ${LIB_DIR})
get_filename_component(LIB_NAME ${LIB_DIR} NAME)
if((ANYPS5_ENABLE_ASAN OR ANYPS5_ENABLE_TSAN) AND LIB_NAME STREQUAL "libSceAddressSanitizer")
continue()
endif()
if(EXISTS ${LIB_DIR}/CMakeLists.txt)
set(LIBS_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR})