mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 06:46:50 +01:00
893bd4a8ef
* gnu/packages/dotnet.scm (mono-1.9.1): New variable. * gnu/packages/patches/mono-1.9.1-add-MONO_CREATE_IMAGE_VERSION.patch: New patch. * gnu/packages/patches/mono-1.9.1-fixes.patch: New patch. * gnu/local.mk (dist_patch_DATA): Register new patches. Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Change-Id: I013646625b9e5dbc1cd68ecaf8cf4b591dc016a0
14 lines
527 B
Diff
14 lines
527 B
Diff
diff --git a/mono/metadata/reflection.c b/mono/metadata/reflection.c
|
|
index ce053b0ef49..7c51f20c4cf 100644
|
|
--- a/mono/metadata/reflection.c
|
|
+++ b/mono/metadata/reflection.c
|
|
@@ -4336,6 +4336,9 @@ create_dynamic_mono_image (MonoDynamicAssembly *assembly, char *assembly_name, c
|
|
|
|
const char *version = mono_get_runtime_info ()->runtime_version;
|
|
|
|
+ char *env_ver = getenv("MONO_CREATE_IMAGE_VERSION");
|
|
+ if (env_ver) version = env_ver;
|
|
+
|
|
#if HAVE_BOEHM_GC
|
|
image = GC_MALLOC (sizeof (MonoDynamicImage));
|
|
#else
|