diff options
author | Vaxry <[email protected]> | 2024-03-01 14:14:28 +0000 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-03-01 14:14:28 +0000 |
commit | 4937352761525de4b034e5f0152261ff5e7552f3 (patch) | |
tree | e51e33280a561361ad2ee222de15c0143b4acfdd /scripts/hyprlandStaticAsan.diff | |
parent | f590505daf90dfb4059289a906863b59663e70a6 (diff) | |
download | Hyprland-4937352761525de4b034e5f0152261ff5e7552f3.tar.gz Hyprland-4937352761525de4b034e5f0152261ff5e7552f3.zip |
makefile: add asan
Diffstat (limited to 'scripts/hyprlandStaticAsan.diff')
-rw-r--r-- | scripts/hyprlandStaticAsan.diff | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/hyprlandStaticAsan.diff b/scripts/hyprlandStaticAsan.diff new file mode 100644 index 00000000..5499f793 --- /dev/null +++ b/scripts/hyprlandStaticAsan.diff @@ -0,0 +1,21 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 857e21de..122d6a78 100755 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -101,7 +101,7 @@ message(STATUS "Checking deps...") + find_package(Threads REQUIRED) + find_package(PkgConfig REQUIRED) + find_package(OpenGL REQUIRED) +-pkg_check_modules(deps REQUIRED IMPORTED_TARGET wayland-server wayland-client wayland-cursor wayland-protocols cairo libdrm xkbcommon libinput pango pangocairo pixman-1 hyprlang>=0.3.2) # we do not check for wlroots, as we provide it ourselves ++pkg_check_modules(deps REQUIRED IMPORTED_TARGET wayland-client wayland-cursor wayland-protocols cairo libdrm xkbcommon libinput pango pangocairo pixman-1 hyprlang>=0.3.2 libffi) # we do not check for wlroots, as we provide it ourselves + + file(GLOB_RECURSE SRCFILES CONFIGURE_DEPENDS "src/*.cpp") + +@@ -121,6 +121,7 @@ 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) + target_compile_options(Hyprland PUBLIC -fsanitize=address) + endif() +
\ No newline at end of file |