[gnome-builder] libide/foundry: remove assertion
- From: Christian Hergert <chergert src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-builder] libide/foundry: remove assertion
 
- Date: Sat, 23 Jul 2022 22:28:00 +0000 (UTC)
 
commit ae973b07f0d6ad0feb58b081017e2bde315ce043
Author: Christian Hergert <chergert redhat com>
Date:   Sat Jul 23 13:10:09 2022 -0700
    libide/foundry: remove assertion
    
    We need this to be possible, since we could have a situation where we
    need to prepare a runtime on the host which may not match what is in
    the pipeline (like locating/running LSPs/tooling from the host).
    
    Just debug log the instance instead and use it for troubleshooting.
 src/libide/foundry/ide-runtime.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/foundry/ide-runtime.c b/src/libide/foundry/ide-runtime.c
index c187cabc0..977aed69e 100644
--- a/src/libide/foundry/ide-runtime.c
+++ b/src/libide/foundry/ide-runtime.c
@@ -729,7 +729,11 @@ ide_runtime_prepare_to_build (IdeRuntime    *self,
     }
 
   g_return_if_fail (IDE_IS_PIPELINE (pipeline));
-  g_return_if_fail (ide_pipeline_get_runtime (pipeline) == self);
+
+  if (self != ide_pipeline_get_runtime (pipeline))
+    g_debug ("Preparing run context for build using non-native runtime. \"%s\" instead of \"%s\".",
+             ide_runtime_get_id (self),
+             ide_runtime_get_id (ide_pipeline_get_runtime (pipeline)));
 
   IDE_RUNTIME_GET_CLASS (self)->prepare_to_build (self, pipeline, run_context);
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]