[gnome-builder/wip/gtk4-port: 1164/1774] plugins/cargo: simplify config-opts help
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 1164/1774] plugins/cargo: simplify config-opts help
- Date: Mon, 11 Jul 2022 22:31:37 +0000 (UTC)
commit 7733ed05fe0cccc3350d0448036d75e0b80f7a29
Author: Christian Hergert <chergert redhat com>
Date: Wed May 25 17:13:52 2022 -0700
plugins/cargo: simplify config-opts help
src/plugins/cargo/gbp-cargo-pipeline-addin.c | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
---
diff --git a/src/plugins/cargo/gbp-cargo-pipeline-addin.c b/src/plugins/cargo/gbp-cargo-pipeline-addin.c
index 124f40324..86128d0c4 100644
--- a/src/plugins/cargo/gbp-cargo-pipeline-addin.c
+++ b/src/plugins/cargo/gbp-cargo-pipeline-addin.c
@@ -136,14 +136,7 @@ gbp_cargo_pipeline_addin_load (IdePipelineAddin *addin,
/* Configure Options get passed to "cargo build" because there is no
* equivalent "configure stage" for cargo.
*/
- if (!ide_str_empty0 (config_opts))
- {
- g_auto(GStrv) args = NULL;
- int argc;
-
- if (g_shell_parse_argv (config_opts, &argc, &args, NULL))
- ide_subprocess_launcher_push_args (build_launcher, (const char * const *)args);
- }
+ ide_subprocess_launcher_push_argv_parsed (build_launcher, config_opts);
clean_launcher = create_launcher (pipeline, project_dir, cargo);
ide_subprocess_launcher_push_argv (clean_launcher, "clean");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]