[gnome-builder] foundry: require project before introspecting environment
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] foundry: require project before introspecting environment
- Date: Tue, 23 Apr 2019 23:37:08 +0000 (UTC)
commit a10674efca1eab9e6e01542ddd0eef53ab9fa275
Author: Christian Hergert <chergert redhat com>
Date: Tue Apr 23 16:36:53 2019 -0700
foundry: require project before introspecting environment
Only projects have environments, and accessing them will cause foundry
subsystems to be created unnecessarily.
src/libide/foundry/ide-build-system.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/libide/foundry/ide-build-system.c b/src/libide/foundry/ide-build-system.c
index d65345da2..0d5c747ba 100644
--- a/src/libide/foundry/ide-build-system.c
+++ b/src/libide/foundry/ide-build-system.c
@@ -119,6 +119,7 @@ ide_build_system_real_get_build_flags_async (IdeBuildSystem *self,
}
if (!(context = ide_object_ref_context (IDE_OBJECT (self))) ||
+ !ide_context_has_project (context) ||
!(build_manager = ide_build_manager_from_context (context)) ||
!(pipeline = ide_build_manager_get_pipeline (build_manager)) ||
!(config = ide_pipeline_get_config (pipeline)) ||
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]