aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/rust.py
diff options
context:
space:
mode:
authorBenjamin Gilbert <bgilbert@backtick.net>2025-04-19 00:21:46 -0500
committerJussi Pakkanen <jpakkane@gmail.com>2025-04-20 13:56:51 +0300
commit7889cac7d5c976a8f11c47bfcb8978ac27b15a61 (patch)
tree892788ae3eea3d6be43717f09153756c139c24fd /mesonbuild/compilers/rust.py
parent95895492f5b25824d80471ab7a850e9cde52bab8 (diff)
downloadmeson-7889cac7d5c976a8f11c47bfcb8978ac27b15a61.zip
meson-7889cac7d5c976a8f11c47bfcb8978ac27b15a61.tar.gz
meson-7889cac7d5c976a8f11c47bfcb8978ac27b15a61.tar.bz2
Log non-fatally if CMake doesn't find a package
If CMake fails to find a package, we should log it in meson-log.txt, but shouldn't bother the user unless there are details to report. In addition, we were calling mlog.warning() without fatal=False, so if msetup was called with --fatal-meson-warnings we'd fail the entire setup in this case, even for optional dependencies. Log a notice with fatal=False if CMake reported an error, and a debug message otherwise. Notably, the "even though Meson's preliminary check succeeded" case can occur when a dependency is missing but its Find*.cmake is shipped with CMake itself. Fixes: 92c517ea69 ("output PACKAGE_NOT_FOUND_MESSAGE as warning when CMake package is not found")
Diffstat (limited to 'mesonbuild/compilers/rust.py')
0 files changed, 0 insertions, 0 deletions