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:
authorRodrigo Kumpera <kumpera@gmail.com>2013-09-19 20:50:27 +0400
committerRodrigo Kumpera <kumpera@gmail.com>2013-12-13 20:59:29 +0400
commite3e31e310d386303604144d01c0245f7a53672cf (patch)
tree1f99c6fe09909348fd9e181c2b81b5ea0954ea6f
parent7bdb9ff3cbf955d1a8a877a6ff7e92f1e66558cc (diff)
[llvm] On OSX we need to search in /Libraries in addition to /lib.
-rw-r--r--mono/mini/mini-llvm.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/mono/mini/mini-llvm.h b/mono/mini/mini-llvm.h
index 53c524e7549..06494f9e14c 100644
--- a/mono/mini/mini-llvm.h
+++ b/mono/mini/mini-llvm.h
@@ -121,6 +121,15 @@ mono_llvm_load (const char* bpath)
llvm_lib = try_llvm_load (name, &err);
g_free (name);
}
+#ifdef __MACH__
+ if (!llvm_lib) {
+ char *newbase = g_path_get_dirname (base);
+ name = g_strdup_printf ("%s/Libraries", newbase);
+ err = NULL;
+ llvm_lib = try_llvm_load (name, &err);
+ g_free (name);
+ }
+#endif
g_free (base);
g_free (resolvedname);
}