1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-31 01:47:15 +03:00
systemd-stable/configure
Zbigniew Jędrzejewski-Szmek 50eb8ff286 configure: update meson invocation
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.

(cherry picked from commit 4f3c90acfee4f5bbd128bdc72008fa2f79d52cfd)
(cherry picked from commit ce856bb8c2f8d64504faababa8d046880bfa7165)
(cherry picked from commit d1198b7760f2ccd5f43705056f577d4372192529)
2023-08-10 09:43:05 +01:00

25 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[@]}"