linux-packaging-mono/llvm_llc_opt_default_path.patch
Jo Shields 203ff2e9e8
Change default AOT LLVM path from $PATH to /usr/lib/mono/llvm/bin
(cherry picked from commit ed559d76e67e49219d86719df394925a21a50e88)
2018-04-17 10:37:57 -04:00

14 lines
630 B
Diff

diff --git a/mono/mini/aot-compiler.c b/mono/mini/aot-compiler.c
index d831bfe8cf5..e419cbdb53b 100644
--- a/mono/mini/aot-compiler.c
+++ b/mono/mini/aot-compiler.c
@@ -12465,7 +12465,7 @@ mono_compile_assembly (MonoAssembly *ass, guint32 opts, const char *aot_options,
acfg->aot_opts.nimt_trampolines = 512;
acfg->aot_opts.nrgctx_fetch_trampolines = 128;
acfg->aot_opts.ngsharedvt_arg_trampolines = 512;
- acfg->aot_opts.llvm_path = g_strdup ("");
+ acfg->aot_opts.llvm_path = g_strdup ("/usr/lib/mono/llvm/bin/");
acfg->aot_opts.temp_path = g_strdup ("");
#ifdef MONOTOUCH
acfg->aot_opts.use_trampolines_page = TRUE;