mirror of
https://github.com/systemd/systemd
synced 2024-11-05 18:25:39 +00:00
4f3c90acfe
New meson says: WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated. Inspired by https://github.com/systemd/systemd/issues/28482.
24 lines
434 B
Bash
Executable file
24 lines
434 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
set -e
|
|
|
|
cflags="CFLAGS=${CFLAGS-}"
|
|
cxxflags="CXXFLAGS=${CXXFLAGS-}"
|
|
args=()
|
|
|
|
for arg in "$@"; do
|
|
case "$arg" in
|
|
CFLAGS=*)
|
|
cflags="$arg"
|
|
;;
|
|
CXXFLAGS=*)
|
|
cxxflags="$arg"
|
|
;;
|
|
*)
|
|
args+=("$arg")
|
|
esac
|
|
done
|
|
|
|
export "${cflags?}" "${cxxflags?}"
|
|
set -x
|
|
exec meson setup build "${args[@]}"
|