Skip to content

Commit

Permalink
[aot] Error out if -O=gsharedvt is used on a platform/configuration w…
Browse files Browse the repository at this point in the history
…here it is not supported.
  • Loading branch information
vargaz committed Aug 7, 2013
1 parent 56f98e1 commit 5d37fac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mono/mini/aot-compiler.c
Expand Up @@ -8472,8 +8472,9 @@ mono_compile_assembly (MonoAssembly *ass, guint32 opts, const char *aot_options)
TV_DECLARE (atv);
TV_DECLARE (btv);

#ifndef MONO_ARCH_GSHAREDVT_SUPPORTED
opts &= ~MONO_OPT_GSHAREDVT;
#if !defined(MONO_ARCH_GSHAREDVT_SUPPORTED) || !defined(MONO_EXTENSIONS)
fprintf (stderr, "-O=gsharedvt not supported on this platform.\n");
exit (1);
#endif

printf ("Mono Ahead of Time compiler - compiling assembly %s\n", image->name);
Expand Down

0 comments on commit 5d37fac

Please sign in to comment.