Hyprland/scripts/hyprlandStaticAsan.diff

21 lines
749 B
Diff
Raw Normal View History

2024-03-01 15:14:28 +01:00
diff --git a/CMakeLists.txt b/CMakeLists.txt
2024-04-13 23:13:08 +02:00
index 1190876d..0e7573f9 100755
2024-03-01 15:14:28 +01:00
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
2024-04-13 23:13:08 +02:00
@@ -110,6 +110,7 @@ pkg_check_modules(deps REQUIRED IMPORTED_TARGET
cairo pango pangocairo pixman-1
libdrm libinput hwdata libseat libdisplay-info libliftoff libudev gbm
hyprlang>=0.3.2 hyprcursor
+ libffi
)
2024-03-01 15:14:28 +01:00
file(GLOB_RECURSE SRCFILES CONFIGURE_DEPENDS "src/*.cpp")
2024-04-13 23:13:08 +02:00
@@ -130,6 +131,7 @@ if(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG)
2024-03-01 15:14:28 +01:00
message(STATUS "Enabling ASan")
target_link_libraries(Hyprland asan)
+ target_link_libraries(Hyprland ${CMAKE_SOURCE_DIR}/libwayland-server.a)
target_compile_options(Hyprland PUBLIC -fsanitize=address)
endif()
2024-03-22 19:34:12 +01:00