aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/hyprlandStaticAsan.diff
blob: b352d65d0e21e719daf8139ceef24c1288dd5ae9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f26a5c3c..3dfef333 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")
 
     target_link_libraries(Hyprland asan)
+    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)
   endif()