Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoltan Varga <vargaz@gmail.com>2016-01-20 01:56:05 +0300
committerZoltan Varga <vargaz@gmail.com>2016-01-20 01:56:05 +0300
commitff2a0b83b968efeee266b89248eadf3ebef8d4d2 (patch)
treed593e230d88287d1fe48c7b0af3c4c2f80e94fb0
parentcbf8bf588bfe053dda66892eb4cd3c135ec95b97 (diff)
[aot] Enable -O=gsharedvt by default when its supported on the platform.
-rw-r--r--mono/mini/aot-compiler.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/mono/mini/aot-compiler.c b/mono/mini/aot-compiler.c
index 40f4e473666..d5cb78de345 100644
--- a/mono/mini/aot-compiler.c
+++ b/mono/mini/aot-compiler.c
@@ -10006,12 +10006,14 @@ mono_compile_assembly (MonoAssembly *ass, guint32 opts, const char *aot_options)
#ifndef ENABLE_GSHAREDVT
aot_printerrf (acfg, "--aot=llvmonly requires a runtime compiled with --enable-gsharedvt.\n");
return 1;
-#else
- acfg->opts |= MONO_OPT_GSHAREDVT;
- opts |= MONO_OPT_GSHAREDVT;
#endif
}
+#if defined(ENABLE_GSHAREDVT) && defined(MONO_ARCH_GSHAREDVT_SUPPORTED)
+ acfg->opts |= MONO_OPT_GSHAREDVT;
+ opts |= MONO_OPT_GSHAREDVT;
+#endif
+
if (opts & MONO_OPT_GSHAREDVT)
mono_set_generic_sharing_vt_supported (TRUE);