From: João Matos Date: Fri, 22 May 2015 13:57:58 +0000 (+0100) Subject: [aot] Added a "temp-path" option to pass a location where to store temporary generati... X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=bef3aa3388b426d4ce7e3fb0a546ba4dd701c1f8;p=mono.git [aot] Added a "temp-path" option to pass a location where to store temporary generation files. --- diff --git a/mono/mini/aot-compiler.c b/mono/mini/aot-compiler.c index 44029773818..400bf58a596 100644 --- a/mono/mini/aot-compiler.c +++ b/mono/mini/aot-compiler.c @@ -130,6 +130,7 @@ typedef struct MonoAotOptions { gboolean autoreg; char *mtriple; char *llvm_path; + char *temp_path; char *instances_logfile_path; char *logfile; gboolean dump_json; @@ -6493,6 +6494,8 @@ mono_aot_parse_options (const char *aot_options, MonoAotOptions *opts) opts->outfile = g_strdup (arg + strlen ("outfile=")); } else if (str_begins_with (arg, "llvm-outfile=")) { opts->llvm_outfile = g_strdup (arg + strlen ("llvm-outfile=")); + } else if (str_begins_with (arg, "temp-path=")) { + opts->temp_path = clean_path (g_strdup (arg + strlen ("temp-path="))); } else if (str_begins_with (arg, "save-temps")) { opts->save_temps = TRUE; } else if (str_begins_with (arg, "keep-temps")) { @@ -6583,6 +6586,7 @@ mono_aot_parse_options (const char *aot_options, MonoAotOptions *opts) printf (" outfile=\n"); printf (" llvm-outfile=\n"); printf (" llvm-path=\n"); + printf (" temp-path=\n"); printf (" save-temps\n"); printf (" keep-temps\n"); printf (" write-symbols\n");