mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 13:05:58 +01:00
makefile: add patch option to make asan
This commit is contained in:
parent
fa79aacea3
commit
d846e82832
1 changed files with 4 additions and 0 deletions
4
Makefile
4
Makefile
|
@ -122,6 +122,10 @@ asan:
|
||||||
rm -rf ./wayland
|
rm -rf ./wayland
|
||||||
git reset --hard
|
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
|
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 ..
|
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 .
|
cp ./wayland/build/src/libwayland-server.a .
|
||||||
|
|
Loading…
Reference in a new issue