[anjuta] build: Allow building with vala 0.50
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] build: Allow building with vala 0.50
- Date: Fri, 20 Aug 2021 06:28:47 +0000 (UTC)
commit 8f8fa97a3592a27e4affe796a77a1638ee88876e
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Fri Aug 20 08:26:49 2021 +0200
build: Allow building with vala 0.50
plugins/language-support-vala/plugin.vala | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/plugins/language-support-vala/plugin.vala b/plugins/language-support-vala/plugin.vala
index 718d74cc8..d94634c7f 100644
--- a/plugins/language-support-vala/plugin.vala
+++ b/plugins/language-support-vala/plugin.vala
@@ -78,7 +78,11 @@ public class ValaPlugin : Plugin, IAnjuta.Preferences {
void init_context () {
context = new Vala.CodeContext();
+#if VALA_0_50
+ context.set_target_profile (Vala.Profile.GOBJECT);
+#else
context.profile = Vala.Profile.GOBJECT;
+#endif
context.report = report;
report.clear_error_indicators ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]