meson: Define LIBPLDM_ABI_DEPRECATED_UNSAFE as empty as required
Not doing so for -Dabi=stable,testing causes unnecessary compilation
errors. The library now builds with:
meson setup -Dabi=stable,testing -Dtests=false ...
Suggested-by: Sam Abu-Nassar <sam.abunassar@xconn-tech.com>
Fixes: 36324f6bea8c ("Apply GCC's tainted_args attribute to library entrypoints")
Change-Id: Ie825e036171edeec321c4df244c075da288b60e4
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
diff --git a/scripts/pre-submit b/scripts/pre-submit
index 1bed2d6..cd5186a 100755
--- a/scripts/pre-submit
+++ b/scripts/pre-submit
@@ -44,3 +44,8 @@
meson configure -Dabi=deprecated,stable "$BUILD"
meson compile -C "$BUILD"
meson test -C "$BUILD"
+
+# Ensure the build completes for maintenance purposes. Note that tests are
+# disabled as we don't yet guard them appropriately.
+meson configure -Dabi=stable,testing -Dtests=false "$BUILD"
+meson compile -C "$BUILD"