From 1cffdcf04b70741383801dd3cecceac7579b8817 Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Mon, 1 Jun 2026 18:20:38 +0100 Subject: [PATCH] scripts: fixup static asan patch (#14889) --- scripts/hyprlandStaticAsan.diff | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/hyprlandStaticAsan.diff b/scripts/hyprlandStaticAsan.diff index b352d65d0..68c75b788 100644 --- a/scripts/hyprlandStaticAsan.diff +++ b/scripts/hyprlandStaticAsan.diff @@ -1,13 +1,14 @@ diff --git a/CMakeLists.txt b/CMakeLists.txt -index f26a5c3c..3dfef333 100644 +index 400b8e10..24ab0916 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -143,6 +143,8 @@ if(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG) - message(STATUS "Enabling ASan") +@@ -305,6 +305,9 @@ if(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG) - target_link_libraries(Hyprland asan) + target_link_libraries(hyprland_lib PUBLIC asan) + target_compile_options(hyprland_lib PUBLIC -fsanitize=address) ++ + pkg_check_modules(ffidep REQUIRED IMPORTED_TARGET libffi) -+ target_link_libraries(Hyprland ${CMAKE_SOURCE_DIR}/libwayland-server.a PkgConfig::ffidep) - target_compile_options(Hyprland PUBLIC -fsanitize=address) ++ target_link_libraries(hyprland_lib PUBLIC ${CMAKE_SOURCE_DIR}/libwayland-server.a PkgConfig::ffidep) endif() + add_compile_options(-fno-pie -fno-builtin -fno-omit-frame-pointer)