diff --git a/tools/prepare-build-dir b/tools/prepare-build-dir
index b366c80ae01c7aa529240dd9170ddd4292f96c44..e60e1a2c6459257046ba1bb2346b103f92af9e69 100755
--- a/tools/prepare-build-dir
+++ b/tools/prepare-build-dir
@@ -100,6 +100,7 @@ if ! $QUIET; then
 fi
 
 meson --buildtype=${BUILDTYPE} \
+	--fatal-meson-warnings \
 	 ${MESON_ARGS[@]} \
 	 "${ABSOLUTE_BUILDDIR}" |\
 	tee "${LOGFILE}"