This repository has been archived on 2023-08-27. You can view files and clone it, but cannot push or open issues or pull requests.
tcpaste/configure
Thorsten Schubert 64c89e9274
Some checks reported errors
continuous-integration/drone/push Build is passing
continuous-integration/drone Build encountered an error
Bug fixes
2021-11-08 18:39:10 +01:00

20 lines
469 B
Bash
Executable file

#!/bin/sh
set -xe
if ! [ -d build ]; then
meson setup build
fi
[ $# -lt 1 ] && exit 0
export CC=$CC
case "$1" in
release) meson configure --buildtype=release --strip -D b_lto=true -D b_pie=true -D b_ndebug=if-release build ;;
debug) meson configure --buildtype=debug --debug --optimization=g -D b_lto=false -D b_pie=false build ;;
clean) rm -rf ./build ;;
*) echo "Valid targets are release, debug and clean." ;;
esac
# vi:set ft=sh ts=4 sw=4 noet noai: