]> git.ipfire.org Git - thirdparty/libvirt.git/commit
ci: Disable optimizations on macOS
authorAndrea Bolognani <abologna@redhat.com>
Wed, 25 Oct 2023 15:33:49 +0000 (17:33 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 26 Oct 2023 09:31:12 +0000 (11:31 +0200)
commit5d95617ed92fcae26e6e863d9036e07054a3e234
tree20ec6dce1e9e43ad8405be31cbe6a43f0c6b5956
parent3653eb5dcf713b6c0492a1597f7c23401236d4cc
ci: Disable optimizations on macOS

Clang can be too aggressive at optimizations, which can end up
breaking our test suite. See f9f5ab57189b for details.

As a result of this, since 7944700b4037 we are automatically
disabling tests when Clang is used unless it supports the
-fsemantic-interposition compiler flag.

Since the version of Clang included in macOS doesn't support that
compiler flag, we end up always disabling the test suite on that
platform.

This is already far from ideal, considering that it was just last
year when we finally managed to get the test suite to successfully
pass on macOS, and it would be a real shame if the situation
regressed again.

With the upcoming changes, which will turn running 'meson test'
into a hard failure if tests are disabled, this behavior will
result in every single pipeline failing.

Work around the problem the only way we can: disabling
optimizations entirely for the macOS CI jobs.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
ci/cirrus/build.yml