Disallow the 'soft-debug' aot option when compiling using LLVM.
authorZoltan Varga <vargaz@gmail.com>
Fri, 7 Jan 2011 13:37:21 +0000 (14:37 +0100)
committerZoltan Varga <vargaz@gmail.com>
Fri, 7 Jan 2011 13:37:21 +0000 (14:37 +0100)
mono/mini/aot-compiler.c

index 532e6bf467e1b827356e82873577f5c529393960..174ef9d140f2eff36239e826060f7874ed222365 100644 (file)
@@ -6639,6 +6639,11 @@ mono_compile_assembly (MonoAssembly *ass, guint32 opts, const char *aot_options)
                acfg->llvm = TRUE;
                acfg->aot_opts.asm_writer = TRUE;
                acfg->flags |= MONO_AOT_FILE_FLAG_WITH_LLVM;
+
+               if (acfg->aot_opts.soft_debug) {
+                       fprintf (stderr, "The 'soft-debug' option is not supported when compiling with LLVM.\n");
+                       exit (1);
+               }
        }
 
        if (acfg->aot_opts.full_aot)