smithay/compile_wlcs.sh
Ben Widawsky 914f413d22 compile_wlcs: Bump WLCS version
Many fixes have landed since the last version. Specifically a fix that
is needed for #1049 to work is included with
aa1df9d76d35e692f9602a93a4d316b60238695b
2023-06-21 10:06:37 -07:00

15 lines
484 B
Bash
Executable file

#!/bin/sh
WLCS_SHA=12234affdc0a4cc104fbaf8a502efc5f822b973b
if [ -f "./wlcs/wlcs" ] && [ "$(cd wlcs; git rev-parse HEAD)" = "${WLCS_SHA}" ] ; then
echo "Using cached WLCS."
else
echo "Compiling WLCS."
git clone https://github.com/MirServer/wlcs.git
cd wlcs || exit
# checkout a specific revision
git reset --hard "${WLCS_SHA}"
cmake -DWLCS_BUILD_ASAN=False -DWLCS_BUILD_TSAN=False -DWLCS_BUILD_UBSAN=False -DCMAKE_EXPORT_COMPILE_COMMANDS=1 .
make
fi