aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-04-06 18:50:04 +0100
committerVaxry <[email protected]>2024-04-06 18:50:04 +0100
commitd846e82832e53e1ec0b9b71fee3ca530601e17c2 (patch)
tree8db63662a6961264e7fe2b9e01f4a9510035a986 /Makefile
parentfa79aacea30eff5c4e3e094ceb98c316d53caefa (diff)
downloadHyprland-d846e82832e53e1ec0b9b71fee3ca530601e17c2.tar.gz
Hyprland-d846e82832e53e1ec0b9b71fee3ca530601e17c2.zip
makefile: add patch option to make asan
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e0a001b8..374d9167 100644
--- a/Makefile
+++ b/Makefile
@@ -122,6 +122,10 @@ asan:
rm -rf ./wayland
git reset --hard
+ @echo -en "If you want to apply a patch, input its path (leave empty for none):\n"
+ @read patchvar
+ @if [-n "$patchvar"]; then patch -p1 < $patchvar || echo ""; else echo "No patch specified"; fi
+
git clone --recursive https://gitlab.freedesktop.org/wayland/wayland
cd wayland && patch -p1 < ../scripts/waylandStatic.diff && meson setup build --buildtype=debug -Db_sanitize=address -Ddocumentation=false && ninja -C build && cd ..
cp ./wayland/build/src/libwayland-server.a .