aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-04-24 16:44:15 +0100
committerVaxry <[email protected]>2024-04-24 16:44:15 +0100
commitd27b5985c101552d7d2b4c6a123112a65d1d258c (patch)
treef1186373550896ddeabc07cdcc34fda1bab548f1 /scripts
parent932a0cd777dc9c797a2fe00a2f9bed8573664c36 (diff)
downloadHyprland-d27b5985c101552d7d2b4c6a123112a65d1d258c.tar.gz
Hyprland-d27b5985c101552d7d2b4c6a123112a65d1d258c.zip
scripts: fix asan patch
Diffstat (limited to 'scripts')
-rw-r--r--scripts/hyprlandStaticAsan.diff15
1 files changed, 4 insertions, 11 deletions
diff --git a/scripts/hyprlandStaticAsan.diff b/scripts/hyprlandStaticAsan.diff
index 5c1754b6..e74eb6ab 100644
--- a/scripts/hyprlandStaticAsan.diff
+++ b/scripts/hyprlandStaticAsan.diff
@@ -1,20 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 1190876d..0e7573f9 100755
+index f54cdf5d..ad7c3e73 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
-@@ -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
- )
-
- file(GLOB_RECURSE SRCFILES CONFIGURE_DEPENDS "src/*.cpp")
-@@ -130,6 +131,7 @@ if(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG)
+@@ -130,6 +130,8 @@ if(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG)
message(STATUS "Enabling ASan")
target_link_libraries(Hyprland asan)
-+ target_link_libraries(Hyprland ${CMAKE_SOURCE_DIR}/libwayland-server.a)
++ 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()