Skip to content

Commit

Permalink
Handle spaces correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
vargaz committed Feb 25, 2024
1 parent 7eaac02 commit 283f5e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mono/mono/mini/aot-compiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -15625,7 +15625,7 @@ compile_assemblies_in_child (MonoAssembly **assemblies, int nassemblies, GPtrArr
/* Already expanded */
continue;
if (i != aot_index)
g_string_append_printf (command, " %s", arg);
g_string_append_printf (command, " \"%s\"", arg);
}

/* Pass '_child' instead of 'compile-in-child' */
Expand All @@ -15641,10 +15641,10 @@ compile_assemblies_in_child (MonoAssembly **assemblies, int nassemblies, GPtrArr
g_string_append_printf (new_aot_args, "%s", aot_arg);
}

g_string_append_printf (command, " --aot=%s", g_string_free (new_aot_args, FALSE));
g_string_append_printf (command, " \"--aot=%s\"", g_string_free (new_aot_args, FALSE));

for (int i = 0; i < nassemblies; ++i)
g_string_append_printf (command, " %s", assemblies [i]->image->name);
g_string_append_printf (command, " \"%s\"", assemblies [i]->image->name);

char *cmd = g_string_free (command, FALSE);
printf ("Executing: %s\n", cmd);
Expand Down

0 comments on commit 283f5e5

Please sign in to comment.