[aot] Added a "temp-path" option to pass a location where to store temporary generati...
authorJoão Matos <joao@tritao.eu>
Fri, 22 May 2015 13:57:58 +0000 (14:57 +0100)
committerJoão Matos <joao@tritao.eu>
Fri, 22 May 2015 14:04:59 +0000 (15:04 +0100)
mono/mini/aot-compiler.c

index 44029773818c9cc6049b4837d20c2e07fa6a28ff..400bf58a5966cab347a5cdc65ef9ed715f856fc9 100644 (file)
@@ -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");