Hyprland/scripts/hyprlandStaticAsan.diff

14 lines
524 B
Diff
Raw Normal View History

2024-03-01 14:14:28 +00:00
diff --git a/CMakeLists.txt b/CMakeLists.txt
2024-08-20 17:36:41 +00:00
index f26a5c3c..3dfef333 100644
2024-03-01 14:14:28 +00:00
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
2024-08-20 17:36:41 +00:00
@@ -143,6 +143,8 @@ if(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG)
message(STATUS "Enabling ASan")
2024-03-01 14:14:28 +00:00
2024-08-20 17:36:41 +00:00
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()
2024-03-22 18:34:12 +00:00