mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 14:05:58 +01:00
Fix static asan patch
This commit is contained in:
parent
1b1ecf77e0
commit
c5786be695
1 changed files with 8 additions and 8 deletions
|
@ -1,13 +1,13 @@
|
||||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
index f54cdf5d..ad7c3e73 100755
|
index f26a5c3c..3dfef333 100644
|
||||||
--- a/CMakeLists.txt
|
--- a/CMakeLists.txt
|
||||||
+++ b/CMakeLists.txt
|
+++ b/CMakeLists.txt
|
||||||
@@ -130,6 +130,8 @@ if(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG)
|
@@ -143,6 +143,8 @@ if(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG)
|
||||||
message(STATUS "Enabling ASan")
|
message(STATUS "Enabling ASan")
|
||||||
|
|
||||||
target_link_libraries(Hyprland asan)
|
target_link_libraries(Hyprland asan)
|
||||||
+ pkg_check_modules(ffidep REQUIRED IMPORTED_TARGET libffi)
|
+ pkg_check_modules(ffidep REQUIRED IMPORTED_TARGET libffi)
|
||||||
+ target_link_libraries(Hyprland ${CMAKE_SOURCE_DIR}/libwayland-server.a PkgConfig::ffidep)
|
+ target_link_libraries(Hyprland ${CMAKE_SOURCE_DIR}/libwayland-server.a PkgConfig::ffidep)
|
||||||
target_compile_options(Hyprland PUBLIC -fsanitize=address)
|
target_compile_options(Hyprland PUBLIC -fsanitize=address)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue