[vala/staging: 1/4] vala: Report warning if --target-glib=auto was not evaluated successfully
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging: 1/4] vala: Report warning if --target-glib=auto was not evaluated successfully
- Date: Wed, 3 Mar 2021 16:49:39 +0000 (UTC)
commit 70abd9550e9efbed373a615b7a2a89e0e05653bc
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Mar 3 17:01:41 2021 +0100
vala: Report warning if --target-glib=auto was not evaluated successfully
and don't try to process the valid "auto" string any further.
vala/valacodecontext.vala | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/vala/valacodecontext.vala b/vala/valacodecontext.vala
index d2e550f03..9e78cc0c8 100644
--- a/vala/valacodecontext.vala
+++ b/vala/valacodecontext.vala
@@ -634,8 +634,10 @@ public class Vala.CodeContext {
if (available_glib != null && available_glib.scanf ("%d.%d", out glib_major, out
glib_minor) >= 2) {
glib_minor -= ++glib_minor % 2;
set_target_glib_version ("%d.%d".printf (glib_major, glib_minor));
- return;
+ } else {
+ Report.warning (null, "Could not determine the version of `glib-2.0', target
version of glib was not set");
}
+ return;
}
glib_major = target_glib_major;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]