mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 03:21:44 +03:00
d40c6cad64
Multiple values passed to --meson-args need to be quoted so that the shell will interpret them correctly. The option's name was also reported incorrectly, so fix that as well. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
24 lines
825 B
Bash
24 lines
825 B
Bash
#!/bin/sh
|
|
|
|
cd "$CI_CONT_SRCDIR"
|
|
|
|
export VIR_TEST_DEBUG=1
|
|
|
|
# $MESON_OPTS is an env that can optionally be set in the container,
|
|
# populated at build time from the Dockerfile. A typical use case would
|
|
# be to pass options to trigger cross-compilation
|
|
#
|
|
# $MESON_ARGS correspond to meson's setup args, i.e. configure args. It's
|
|
# populated either from a GitLab's job configuration or from command line as
|
|
# `$ helper build --meson-args='-Dopt1 -Dopt2'` when run in a local
|
|
# containerized environment
|
|
#
|
|
# The contents of $MESON_ARGS (defined locally) should take precedence over
|
|
# those of $MESON_OPTS (defined when the container was built), so they're
|
|
# passed to meson after them
|
|
|
|
meson setup build --werror -Dsystem=true $MESON_OPTS $MESON_ARGS || \
|
|
(cat build/meson-logs/meson-log.txt && exit 1)
|
|
|
|
ninja -C build $NINJA_ARGS
|